Commit a3f95a18 authored by Eric Coissac's avatar Eric Coissac

--no commit message

--no commit message
parent 0762aeb0
......@@ -338,11 +338,13 @@ static char* itoa(int val, int base){
static char buf[32] = {0};
int i = 30;
for(; val && i ; --i, val /= base)
int j = 0;
for(; val && i ; j++,--i, val /= base)
buf[i] = "0123456789abcdef"[val % base];
for (;j<8;j++) i--;
return &buf[i+1];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment