mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
sizeof(long)==8
Bum. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2444 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
752d3571e0
commit
7f6ff725e4
3 changed files with 9 additions and 9 deletions
|
@ -103,8 +103,8 @@ void StripExtension (char *path);
|
||||||
void SetEndian(void);
|
void SetEndian(void);
|
||||||
extern short (*PRBigShort) (short l);
|
extern short (*PRBigShort) (short l);
|
||||||
extern short (*PRLittleShort) (short l);
|
extern short (*PRLittleShort) (short l);
|
||||||
extern long (*PRBigLong) (long l);
|
extern int (*PRBigLong) (int l);
|
||||||
extern long (*PRLittleLong) (long l);
|
extern int (*PRLittleLong) (int l);
|
||||||
extern float (*PRBigFloat) (float l);
|
extern float (*PRBigFloat) (float l);
|
||||||
extern float (*PRLittleFloat) (float l);
|
extern float (*PRLittleFloat) (float l);
|
||||||
|
|
||||||
|
|
|
@ -38,8 +38,8 @@ void qccClearHunk(void);
|
||||||
|
|
||||||
extern short (*PRBigShort) (short l);
|
extern short (*PRBigShort) (short l);
|
||||||
extern short (*PRLittleShort) (short l);
|
extern short (*PRLittleShort) (short l);
|
||||||
extern long (*PRBigLong) (long l);
|
extern int (*PRBigLong) (int l);
|
||||||
extern long (*PRLittleLong) (long l);
|
extern int (*PRLittleLong) (int l);
|
||||||
extern float (*PRBigFloat) (float l);
|
extern float (*PRBigFloat) (float l);
|
||||||
extern float (*PRLittleFloat) (float l);
|
extern float (*PRLittleFloat) (float l);
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@ int qcc_eof;
|
||||||
*/
|
*/
|
||||||
short (*PRBigShort) (short l);
|
short (*PRBigShort) (short l);
|
||||||
short (*PRLittleShort) (short l);
|
short (*PRLittleShort) (short l);
|
||||||
long (*PRBigLong) (long l);
|
int (*PRBigLong) (int l);
|
||||||
long (*PRLittleLong) (long l);
|
int (*PRLittleLong) (int l);
|
||||||
float (*PRBigFloat) (float l);
|
float (*PRBigFloat) (float l);
|
||||||
float (*PRLittleFloat) (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;
|
qbyte b1,b2,b3,b4;
|
||||||
|
|
||||||
|
@ -57,10 +57,10 @@ long QCC_SwapLong (long l)
|
||||||
b3 = (qbyte)(l>>16);
|
b3 = (qbyte)(l>>16);
|
||||||
b4 = (qbyte)(l>>24);
|
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;
|
return l;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue