|
|
| version 1.78, 2015/10/06 22:20:50 | version 1.79, 2015/10/12 21:04:58 |
|---|---|
| Line 510 static void _crc32(Request& r, MethodPar | Line 510 static void _crc32(Request& r, MethodPar |
| static void toBase(unsigned long long int value, unsigned int base, char*& ptr){ | static void toBase(unsigned long long int value, unsigned int base, char*& ptr){ |
| static const char* hex="0123456789ABCDEF"; | static const char* hex="0123456789ABCDEF"; |
| int rest = value % base; | unsigned int rest = (unsigned int)(value % base); |
| if(value >= base) | if(value >= base) |
| toBase( (value-rest)/base, base, ptr); | toBase( (value-rest)/base, base, ptr); |
| *ptr++=(char)hex[rest]; | *ptr++=(char)hex[rest]; |