mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
on 32-bit machines only unsigned long longs are 64-bits long. Not just unsigned longs...
Note that this means that up to now all outputs (including logs) of counts > 32 bits were broken on 32-bit systems.
This commit is contained in:
parent
20c71cac51
commit
26f5aee7f6
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ void modp_uitoa10(uint32_t value, char* str)
|
||||||
void modp_litoa10(int64_t value, char* str)
|
void modp_litoa10(int64_t value, char* str)
|
||||||
{
|
{
|
||||||
char* wstr=str;
|
char* wstr=str;
|
||||||
unsigned long uvalue = (value < 0) ? -value : value;
|
unsigned long long uvalue = (value < 0) ? -value : value;
|
||||||
|
|
||||||
// Conversion. Number is reversed.
|
// Conversion. Number is reversed.
|
||||||
do *wstr++ = (char)(48 + (uvalue % 10)); while(uvalue /= 10);
|
do *wstr++ = (char)(48 + (uvalue % 10)); while(uvalue /= 10);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue