Code: Select all
gzdoom: gzdoom/src/scripting/backend/codegen.cpp:2319: virtual ExpEmit FxPostIncrDecr::Emit(VMFunctionBuilder*): Assertion `ValueType == Base->ValueType && IsNumeric()' failed.
Moderator: GZDoom Developers
Code: Select all
gzdoom: gzdoom/src/scripting/backend/codegen.cpp:2319: virtual ExpEmit FxPostIncrDecr::Emit(VMFunctionBuilder*): Assertion `ValueType == Base->ValueType && IsNumeric()' failed.
The latest stable version is a Release build. Assertions only happen in Debug builds.Gustavo6046 wrote:This issue does not happen with the latest stable version of GZDoom. In the case of the ZetaBot, it was temporarily fixed in ZetaBot v0.4.0 merely by fiddling with the source code (it seemed to be related to certain patches of code (most likely from Standard.zsc), which were refactored, though I don't recall which - try reading diffs), but it returned in a later version (and still exists, as of v0.7.0) for an unknown reason.
Code: Select all
class IncrDecrTypeMismatch
{
void Test()
{
int a = 0;
// These lines trigger assertion failures
uint b = a++;
uint c = --a;
// These do not
uint b; b = a++;
uint c; c = --a;
}
}