From 234e54d5b162abb5a64d796f71e9b8400c447f02 Mon Sep 17 00:00:00 2001 From: qbix79 Date: Fri, 26 Jun 2009 17:06:09 +0000 Subject: [PATCH] Restore old __int64 typedef. Restore former 64 bit fixes. Add a new one. git-svn-id: https://svn.eduke32.com/eduke32@1442 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/kplib.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/polymer/eduke32/build/src/kplib.c b/polymer/eduke32/build/src/kplib.c index 428191e97..f28336377 100644 --- a/polymer/eduke32/build/src/kplib.c +++ b/polymer/eduke32/build/src/kplib.c @@ -57,7 +57,7 @@ static uint16_t SSWAPIL(uint16_t a) { return((a>>8)+(a<<8)); } #if !defined(_WIN32) && !defined(__DOS__) #include #include -typedef int32_t int32_t __int64; +typedef long long __int64; static __inline int32_t _lrotl(int32_t i, int sh) { return((i>>(-sh))|(i<>8)&0xf8); g[0] = ((c0>>3)&0xfc); b[0] = ((c0<<3)&0xfc); a[0] = 255; c1 = SSWAPIB(*(uint16_t *)&uptr[2]); @@ -2557,7 +2557,7 @@ void kpgetdim(const char *buf, int32_t leng, int32_t *xsiz, int32_t *ysiz) { if (lptr[1] == LSWAPIB(0x52444849)) //IHDR {(*xsiz) = LSWAPIL(lptr[2]); (*ysiz) = LSWAPIL(lptr[3]); break; } - lptr = (int32_t *)((int32_t)lptr + LSWAPIL(lptr[0]) + 12); + lptr = (int32_t *)((intptr_t)lptr + LSWAPIL(lptr[0]) + 12); } } else if ((ubuf[0] == 0xff) && (ubuf[1] == 0xd8)) //.JPG