sscanf format parameter fixups

git-svn-id: https://svn.eduke32.com/eduke32@7083 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-25 23:29:20 +00:00
parent 9e68009725
commit 4bb9a4b792
6 changed files with 10 additions and 8 deletions

View file

@ -379,7 +379,7 @@ int32_t scriptfile_getsymbolvalue(char const *name, int32_t *val)
{
if (name[0] == '0' && tolower(name[1]) == 'x') // hex constants
{
int64_t x;
uint64_t x;
sscanf(name + 2, "%" PRIx64 "", &x);
if (EDUKE32_PREDICT_FALSE(x > UINT32_MAX))