Fixing bug with defining bro_int_t and bro_uint_t as 64-bit in some

platforms.
This commit is contained in:
Robin Sommer 2011-02-04 17:39:38 -08:00
parent 8974265d39
commit 51b3efbb1a

View file

@ -39,13 +39,9 @@
extern HeapLeakChecker* heap_checker;
#endif
typedef unsigned long long int uint64;
typedef unsigned int uint32;
typedef unsigned short uint16;
typedef unsigned char uint8;
typedef long long int int64;
typedef int64 bro_int_t;
typedef uint64 bro_uint_t;
#if SIZEOF_LONG_LONG == 8
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."
#endif
typedef int64 bro_int_t;
typedef uint64 bro_uint_t;
// "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,
// which represent their entities as void* pointers.