mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Fixing bug with defining bro_int_t and bro_uint_t as 64-bit in some
platforms.
This commit is contained in:
parent
8974265d39
commit
51b3efbb1a
1 changed files with 3 additions and 4 deletions
|
@ -39,13 +39,9 @@
|
||||||
extern HeapLeakChecker* heap_checker;
|
extern HeapLeakChecker* heap_checker;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef unsigned long long int uint64;
|
|
||||||
typedef unsigned int uint32;
|
typedef unsigned int uint32;
|
||||||
typedef unsigned short uint16;
|
typedef unsigned short uint16;
|
||||||
typedef unsigned char uint8;
|
typedef unsigned char uint8;
|
||||||
typedef long long int int64;
|
|
||||||
typedef int64 bro_int_t;
|
|
||||||
typedef uint64 bro_uint_t;
|
|
||||||
|
|
||||||
#if SIZEOF_LONG_LONG == 8
|
#if SIZEOF_LONG_LONG == 8
|
||||||
typedef unsigned long long uint64;
|
typedef unsigned long long uint64;
|
||||||
|
@ -57,6 +53,9 @@ typedef long int int64;
|
||||||
# error "Couldn't reliably identify 64-bit type. Please report to bro@bro-ids.org."
|
# error "Couldn't reliably identify 64-bit type. Please report to bro@bro-ids.org."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef int64 bro_int_t;
|
||||||
|
typedef uint64 bro_uint_t;
|
||||||
|
|
||||||
// "ptr_compat_uint" and "ptr_compat_int" are (un)signed integers of
|
// "ptr_compat_uint" and "ptr_compat_int" are (un)signed integers of
|
||||||
// pointer size. They can be cast safely to a pointer, e.g. in Lists,
|
// pointer size. They can be cast safely to a pointer, e.g. in Lists,
|
||||||
// which represent their entities as void* pointers.
|
// which represent their entities as void* pointers.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue