mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-25 23:29:24 +00:00
clean up math varsize complaints
This commit is contained in:
parent
1230d0d280
commit
0ce2da3a23
30 changed files with 61 additions and 56 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 --;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue