Changeset: 3b6789049c60 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3b6789049c60
Modified Files:
        gdk/gdk_system.c
Branch: Jul2017
Log Message:

fixed compilation with older gcc


diffs (14 lines):

diff --git a/gdk/gdk_system.c b/gdk/gdk_system.c
--- a/gdk/gdk_system.c
+++ b/gdk/gdk_system.c
@@ -818,8 +818,8 @@ smp_thread(void *data)
 static int
 highest_power_of_two_below(int n)
 {
-       int res = 0;
-       for (int i = n; i >= 1; i--) {
+       int i, res = 0;
+       for (i = n; i >= 1; i--) {
                if ((i & (i-1)) == 0) { //is power of 2
                        res = i;
                        break;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to