Small fix to the casting of values in boolean logical statements

This commit is contained in:
Jonathan Turner 2009-11-07 14:50:41 +00:00
parent 18bfead387
commit d946cb7e9d

View File

@ -256,7 +256,7 @@ namespace chaiscript
for (i = 1; i < node->children.size(); i += 2) {
bool lhs;
try {
lhs = boxed_cast<bool &>(retval);
lhs = boxed_cast<bool >(retval);
}
catch (const bad_boxed_cast &) {
throw Eval_Error("Condition not boolean", node);