koolhazz / stringencoders

Automatically exported from code.google.com/p/stringencoders
Other
0 stars 0 forks source link

invalid type used in function: void modp_litoa10(int64_t value, char* str) #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In file modp_numtoa.c at line
    unsigned long uvalue = (value < 0) ? -value : value;
input is converted to 32 bit integer.

Solution:
    uint64_t uvalue = (value < 0) ? -value : value;

Original issue reported on code.google.com by s57...@gmail.com on 20 Jun 2013 at 8:37