Merge pull request #1016 from Azaezel/alpha41/mangledMath

clean up math varsize complaints
This commit is contained in:
Brian Roberts 2023-05-08 21:28:49 -05:00 committed by GitHub
commit a6f03897ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 73 additions and 68 deletions

View file

@ -37,6 +37,7 @@ struct _FlagMap
U32 flag;
};
#ifndef TORQUE_SDL
static _FlagMap sgButtonMap[] =
{
{ MBOk, MB_OK },
@ -65,7 +66,7 @@ static _FlagMap sgMsgBoxRetMap[] =
{ IDYES, MROk },
{ 0xffffffff, 0xffffffff }
};
#endif
//-----------------------------------------------------------------------------
static U32 getMaskFromID(_FlagMap *map, S32 id)

View file

@ -147,7 +147,7 @@ void WinConsole::printf(const char *s, ...)
// Axe the color characters.
Con::stripColorChars(buffer);
// Print it.
WriteFile(stdOut, buffer, strlen(buffer), &bytes, NULL);
WriteFile(stdOut, buffer, (U32)strlen(buffer), &bytes, NULL);
FlushFileBuffers( stdOut );
}

View file

@ -59,7 +59,7 @@ void Platform::outputDebugString( const char *string, ... )
// twice as in a multi-threaded environment, some other thread may output some
// stuff in between the two calls.
U32 length = strlen( buffer );
U32 length = (U32)strlen( buffer );
if( length == ( sizeof( buffer ) - 1 ) )
length --;