diff --git a/engine/qclib/progsint.h b/engine/qclib/progsint.h index c698b50fa..07bfe3266 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 0c44ad165..dbdefd6e0 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 53974cfc8..42f1f7d84 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; }