mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Merge remote-tracking branch 'origin/fastpath'
* origin/fastpath: Remove automatic use of gperftools on non-Linux systems. Fix uninitialized value for 'is_partial' in TCP analyzer. parse 64-bit consts correctly. on 32-bit machines only unsigned long longs are 64-bits long. Not just unsigned longs...
This commit is contained in:
commit
a24abddc5f
8 changed files with 50 additions and 19 deletions
|
@ -56,7 +56,7 @@ void modp_uitoa10(uint32_t value, char* str)
|
|||
void modp_litoa10(int64_t value, char* str)
|
||||
{
|
||||
char* wstr=str;
|
||||
unsigned long uvalue = (value < 0) ? -value : value;
|
||||
uint64_t uvalue = (value < 0) ? -value : value;
|
||||
|
||||
// Conversion. Number is reversed.
|
||||
do *wstr++ = (char)(48 + (uvalue % 10)); while(uvalue /= 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue