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.
This commit is contained in:
Vicențiu Ciorbaru 2018-06-29 12:09:38 +03:00
parent f46acd4a3a
commit 83bf267e0d

View file

@ -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. */