Skip to content

Commit

Permalink
endian.h: fix runtime breakage on LP64 platforms
Browse files Browse the repository at this point in the history
LP64 platforms use a 64-bit integer for longs and pointers. Expecting 'unsigned
long' to be 32-bit in this case totally breaks.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  • Loading branch information
tycho committed Mar 3, 2012
1 parent e4b872f commit 1616bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions endian.h
Expand Up @@ -23,8 +23,8 @@ typedef unsigned char uint8;
typedef signed char int8;
typedef unsigned short uint16;
typedef signed short int16;
typedef unsigned long uint32;
typedef signed long int32;
typedef unsigned int uint32;
typedef signed int int32;

//FCS added for windows build
#ifdef _WIN32
Expand Down

0 comments on commit 1616bb0

Please sign in to comment.