1
0
Fork 0

removed TODOs

This commit is contained in:
Jan Steemann 2014-10-29 13:19:13 +01:00
parent cf79ef33e2
commit 464c0751d9
2 changed files with 2 additions and 1 deletions

View File

@ -1149,7 +1149,7 @@ AstNode* Ast::optimizeUnaryOperatorArithmetic (AstNode* node) {
// double
double const value = - converted->getDoubleValue();
if (value != value ||
if (value != value || // intentional
value == HUGE_VAL ||
value == - HUGE_VAL) {
// IEEE754 NaN values have an interesting property that we can exploit...

View File

@ -610,6 +610,7 @@ AqlValue Expression::executeSimpleExpression (AstNode const* node,
// right operand must be a list, otherwise we return false
left.destroy();
right.destroy();
// do not throw, but return "false" instead
return AqlValue(new triagens::basics::Json(false));
}