Skip to content
Permalink
Browse files
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.
  • Loading branch information
cvicentiu committed Jun 29, 2018
1 parent f46acd4 commit 83bf267
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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. */

0 comments on commit 83bf267

Please sign in to comment.