s/LittleLong/LittleInt/ to match the return type

This commit is contained in:
dhewg 2012-06-28 12:49:24 +02:00 committed by Daniel Gibson
parent a9a6042a04
commit 420783b151
4 changed files with 6 additions and 6 deletions

View file

@ -573,7 +573,7 @@ idDict::WriteToFileHandle
================ ================
*/ */
void idDict::WriteToFileHandle( idFile *f ) const { void idDict::WriteToFileHandle( idFile *f ) const {
int c = LittleLong( args.Num() ); int c = LittleInt( args.Num() );
f->Write( &c, sizeof( c ) ); f->Write( &c, sizeof( c ) );
for ( int i = 0; i < args.Num(); i++ ) { // don't loop on the swapped count use the original for ( int i = 0; i < args.Num(); i++ ) { // don't loop on the swapped count use the original
WriteString( args[i].GetKey().c_str(), f ); WriteString( args[i].GetKey().c_str(), f );
@ -615,7 +615,7 @@ void idDict::ReadFromFileHandle( idFile *f ) {
Clear(); Clear();
f->Read( &c, sizeof( c ) ); f->Read( &c, sizeof( c ) );
c = LittleLong( c ); c = LittleInt( c );
for ( int i = 0; i < c; i++ ) { for ( int i = 0; i < c; i++ ) {
key = ReadString( f ); key = ReadString( f );
val = ReadString( f ); val = ReadString( f );

View file

@ -439,7 +439,7 @@ int BigLong( int l ) {
return SDL_SwapBE32(l); return SDL_SwapBE32(l);
} }
int LittleLong( int l ) { int LittleInt( int l ) {
return SDL_SwapLE32(l); return SDL_SwapLE32(l);
} }

View file

@ -107,7 +107,7 @@ void UnpackColor( const dword color, idVec4 &unpackedColor );
short BigShort( short l ); short BigShort( short l );
short LittleShort( short l ); short LittleShort( short l );
int BigLong( int l ); int BigLong( int l );
int LittleLong( int l ); int LittleInt( int l );
float BigFloat( float l ); float BigFloat( float l );
float LittleFloat( float l ); float LittleFloat( float l );
void BigRevBytes( void *bp, int elsize, int elcount ); void BigRevBytes( void *bp, int elsize, int elcount );

View file

@ -245,8 +245,8 @@ void MD5_Final( MD5_CTX *ctx, unsigned char digest[16] ) {
unsigned int val0 = ctx->bits[0]; unsigned int val0 = ctx->bits[0];
unsigned int val1 = ctx->bits[1]; unsigned int val1 = ctx->bits[1];
((unsigned int *) ctx->in)[14] = LittleLong( val0 ); ((unsigned int *) ctx->in)[14] = LittleInt( val0 );
((unsigned int *) ctx->in)[15] = LittleLong( val1 ); ((unsigned int *) ctx->in)[15] = LittleInt( val1 );
MD5_Transform( ctx->state, (unsigned int *) ctx->in ); MD5_Transform( ctx->state, (unsigned int *) ctx->in );
memcpy( digest, ctx->state, 16 ); memcpy( digest, ctx->state, 16 );