From 7f6ff725e4b82a4b7803420e0c9c51439341032f Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 10 Nov 2006 15:48:18 +0000 Subject: [PATCH] sizeof(long)==8 Bum. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2444 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/progsint.h | 4 ++-- engine/qclib/qcc.h | 4 ++-- engine/qclib/qcc_cmdlib.c | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/engine/qclib/progsint.h b/engine/qclib/progsint.h index c698b50f..07bfe326 100644 --- a/engine/qclib/progsint.h +++ b/engine/qclib/progsint.h @@ -103,8 +103,8 @@ void StripExtension (char *path); void SetEndian(void); extern short (*PRBigShort) (short l); extern short (*PRLittleShort) (short l); -extern long (*PRBigLong) (long l); -extern long (*PRLittleLong) (long l); +extern int (*PRBigLong) (int l); +extern int (*PRLittleLong) (int l); extern float (*PRBigFloat) (float l); extern float (*PRLittleFloat) (float l); diff --git a/engine/qclib/qcc.h b/engine/qclib/qcc.h index 0c44ad16..dbdefd6e 100644 --- a/engine/qclib/qcc.h +++ b/engine/qclib/qcc.h @@ -38,8 +38,8 @@ void qccClearHunk(void); extern short (*PRBigShort) (short l); extern short (*PRLittleShort) (short l); -extern long (*PRBigLong) (long l); -extern long (*PRLittleLong) (long l); +extern int (*PRBigLong) (int l); +extern int (*PRLittleLong) (int l); extern float (*PRBigFloat) (float l); extern float (*PRLittleFloat) (float l); diff --git a/engine/qclib/qcc_cmdlib.c b/engine/qclib/qcc_cmdlib.c index 53974cfc..42f1f7d8 100644 --- a/engine/qclib/qcc_cmdlib.c +++ b/engine/qclib/qcc_cmdlib.c @@ -26,8 +26,8 @@ int qcc_eof; */ short (*PRBigShort) (short l); short (*PRLittleShort) (short l); -long (*PRBigLong) (long l); -long (*PRLittleLong) (long l); +int (*PRBigLong) (int l); +int (*PRLittleLong) (int l); float (*PRBigFloat) (float l); float (*PRLittleFloat) (float l); @@ -48,7 +48,7 @@ short QCC_Short (short l) } -long QCC_SwapLong (long l) +int QCC_SwapLong (int l) { qbyte b1,b2,b3,b4; @@ -57,10 +57,10 @@ long QCC_SwapLong (long l) b3 = (qbyte)(l>>16); b4 = (qbyte)(l>>24); - return ((long)b1<<24) + ((long)b2<<16) + ((long)b3<<8) + b4; + return ((int)b1<<24) + ((int)b2<<16) + ((int)b3<<8) + b4; } -long QCC_Long (long l) +int QCC_Long (int l) { return l; }