From: George Koehler Date: Thu, 20 Sep 2012 03:39:51 +0000 (-0400) Subject: *Again* fix fit16i() for systems with 64-bit long. X-Git-Tag: release-6-0-pre-5~39 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=be234ea75974b1a9cbb8bf52bf7c4f9b98aa92e9;p=ack.git *Again* fix fit16i() for systems with 64-bit long. I already did this in abebf1586c06, but I edited the wrong file. Then in edddc6b7cd17, I deleted that file. By fixing fit16i(), I can now compile ACK for OpenBSD/amd64. --- diff --git a/modules/src/em_code/em.c b/modules/src/em_code/em.c index 8a2f16e42..f13ab28dc 100644 --- a/modules/src/em_code/em.c +++ b/modules/src/em_code/em.c @@ -353,7 +353,7 @@ C_magic() } /*** the compact code generating routines ***/ -#define fit16i(x) ((x) >= (long)0xFFFF8000 && (x) <= (long)0x00007FFF) +#define fit16i(x) ((x) >= (long)(-0x8000) && (x) <= (long)0x7FFF) #define fit8u(x) ((x) <= 0xFF) /* x is already unsigned */ void