mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
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:
parent
f46acd4a3a
commit
83bf267e0d
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue