clean up math varsize complaints

This commit is contained in:
AzaezelX 2023-04-27 16:10:04 -05:00
parent 1230d0d280
commit 0ce2da3a23
30 changed files with 61 additions and 56 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 --;