mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Silence "number greater than INT32_MAX converted to a negative one" warning.
Literals written out as if they were unsigned and having the highest-order bit set are all too ubiquitous, like hitscan masks for example. git-svn-id: https://svn.eduke32.com/eduke32@2742 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9e5696a486
commit
f9077dc9cd
1 changed files with 2 additions and 1 deletions
|
@ -1484,10 +1484,11 @@ static int32_t parse_decimal_number(void) // (textptr)
|
|||
// Number interpreted as uint32, but packed as int32 (on 32-bit archs)
|
||||
// (CON code in the wild exists that does this). Note that such conversion
|
||||
// is implementation-defined (C99 6.3.1.3) but GCC does the 'expected' thing.
|
||||
|
||||
#if 0
|
||||
initprintf("%s:%d: warning: number greater than INT32_MAX converted to a negative one.\n",
|
||||
g_szScriptFileName,g_lineNumber);
|
||||
g_numCompilerWarnings++;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue