diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-03-27 01:38:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-03-27 01:38:28 +0000 |
commit | 367c9cb514c9da766488b9bdb218a18e31cb7624 (patch) | |
tree | f9e343be94161a4837f0f1c1d072a35538ae0f63 /buildtools/endiangen.c | |
parent | 6e88e3326cb0c7f7975b56189278cab3f84ba1bd (diff) | |
download | netpbm-mirror-367c9cb514c9da766488b9bdb218a18e31cb7624.tar.gz netpbm-mirror-367c9cb514c9da766488b9bdb218a18e31cb7624.tar.xz netpbm-mirror-367c9cb514c9da766488b9bdb218a18e31cb7624.zip |
Promote Stable (10.47) to Super Stable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@2691 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'buildtools/endiangen.c')
-rw-r--r-- | buildtools/endiangen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buildtools/endiangen.c b/buildtools/endiangen.c index 07560c10..6b88b896 100644 --- a/buildtools/endiangen.c +++ b/buildtools/endiangen.c @@ -59,9 +59,9 @@ byteOrder(void) { static unsigned int -bitsPerWord(void) { +bitsPerLong(void) { - return MAX(sizeof(long), sizeof(int)) * 8; + return sizeof(long) * 8; } @@ -87,7 +87,7 @@ main(int argc, char **argv) { byteOrder() == ENDIAN_LITTLE ? "LITTLE_ENDIAN" : "BIG_ENDIAN"); printf("#endif\n"); printf("\n"); - printf("#define BITS_PER_WORD %u\n", bitsPerWord()); + printf("#define BITS_PER_LONG %u\n", bitsPerLong()); return 0; } |