assert caused by implicit conversion

Started by
0 comments, last by WitchLord 19 years, 5 months ago
To reproduce in 1.9.2a : Script :

int iTest=5;
int iTestOut = (iTest == 5) ? 20 : 30;
Result in Debug mode : Assertion failed: !bc || bc->GetLastCode() == BC_SET4, file \angelscript_1.9.2a\angelscript\source\as_compiler.cpp, line 2206 In release mode, no pb. Workaround : Script :

int iTest=5;
int iTestOut = (iTest == 5) ? int(20) : int(30);
Regards, AbrKen.
Advertisement
I'll look into this during the day.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement