Fix fit16i() for systems with 64-bit long.
authorGeorge Koehler <xkernigh@netscape.net>
Thu, 20 Sep 2012 03:39:51 +0000 (23:39 -0400)
committerNick Downing <nick@ndcode.org>
Wed, 17 Apr 2019 14:20:38 +0000 (00:20 +1000)
commitbbea1f4ae3a6be304e2f5293cebf35d872092289
tree52e139abdf2c5e84ee38ad97d8039ccbcfe7e908
parent62985a0602d30c4199154e1e056e65097c14deb1
Fix fit16i() for systems with 64-bit long.

(long)0xFFFF8000 had expanded to 0x00000000FFFF8000.
With (long)(-0x8000), the compiler now extends the negative sign.

By fixing fit16i(), I can now compile ACK for OpenBSD/amd64.
modules/src/em_code/em.c