Commit 83bf267e authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Fix Internal Compiler Error GCC-6.3.0

Change the float comparison function to use a negated version when
comparing for equality. This actually produces less code when compiling
with optimizations (O3) on.
parent f46acd4a
......@@ -562,7 +562,7 @@ inline static grn_ts_bool
grn_ts_op_not_equal_float(grn_ts_float lhs, grn_ts_float rhs)
{
/* To suppress warnings, "lhs != rhs" is not used. */
return (lhs < rhs) || (lhs > rhs);
return !grn_ts_op_equal_float(lhs, rhs);
}
/* grn_ts_op_not_equal_time() returns lhs != rhs. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment