Compilation fixes for C++20

This commit is contained in:
Jeff Hutchinson 2022-11-27 23:08:07 -05:00
parent e16351605b
commit 1940becb2d
40 changed files with 220 additions and 211 deletions

View file

@ -353,7 +353,7 @@ public:
ival = 0;
fval = 0;
sval = typeValueEmpty;
sval = NULL;
bufferLen = 0;
}
@ -404,10 +404,10 @@ public:
{
fval = (F32)val;
ival = val;
if (sval != typeValueEmpty)
if (sval != NULL)
{
dFree(sval);
sval = typeValueEmpty;
sval = NULL;
}
type = TypeInternalInt;
}
@ -434,10 +434,10 @@ public:
{
fval = val;
ival = static_cast<U32>(val);
if (sval != typeValueEmpty)
if (sval != NULL)
{
dFree(sval);
sval = typeValueEmpty;
sval = NULL;
}
type = TypeInternalFloat;
}