by Player701 » Wed Oct 31, 2018 12:51 am
The following ZScript triggers an assertion failure in debug builds (at least g3.7pre-130-g94688a370):
Code: Select all
class Test
{
void DoSomething()
{
int x = 0;
if (x = 0) // typo, should be "=="
{
// ...
}
}
}
In release builds, execution seems to proceed normally, but who knows what could happen then. The error does not appear if "=" is replaced with "==" (as it should be).
- Attachments
-
- zscript.txt
- (162 Bytes) Downloaded 58 times
The following ZScript triggers an assertion failure in debug builds (at least g3.7pre-130-g94688a370):
[code]class Test
{
void DoSomething()
{
int x = 0;
if (x = 0) // typo, should be "=="
{
// ...
}
}
}
[/code]
[imgur]https://imgur.com/5MUBbRV[/imgur]
In release builds, execution seems to proceed normally, but who knows what could happen then. The error does not appear if "=" is replaced with "==" (as it should be).