Skip to content

Commit 2c5a1eb

Browse files
committed
Bug#20768717: DEBUG BUILD FAILS WHEN USING GCC 5 DUE TO COMPILER WARNING
Add extra set of parentheses to remove a GCC 5 compiler warning.
1 parent 2ae7054 commit 2c5a1eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/gcalc_tools.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -223,7 +223,7 @@ int Gcalc_function::count_internal()
223223
result= result & !next_res;
224224
break;
225225
case op_backdifference:
226-
result= !result & next_res;
226+
result= (!result) & next_res;
227227
break;
228228
default:
229229
DBUG_ASSERT(FALSE);

0 commit comments

Comments
 (0)