Bugfix: cached the wrong boolean value. Fixed.

This commit is contained in:
Jonathan Turner 2009-09-08 02:15:41 +00:00
parent 2d4b9c0d93
commit cfee4c6bc1

View File

@ -69,7 +69,7 @@ namespace chaiscript
else if (node->text == "false") {
//return const_var(false);
if (!node->is_cached) {
cache_const(ss, node, const_var(true));
cache_const(ss, node, const_var(false));
}
return node->cached_value;
}