[sgen] Fix build on C99.
authorMark Probst <mark.probst@gmail.com>
Tue, 7 Oct 2014 00:13:31 +0000 (17:13 -0700)
committerMark Probst <mark.probst@gmail.com>
Wed, 26 Nov 2014 18:38:45 +0000 (10:38 -0800)
mono/metadata/sgen-marksweep.c

index 01e5cca3597ed689de5e3190fac93fd05fe345e7..585785ec91c549b1c736a68cddbed492ae210fdc 100644 (file)
@@ -1054,7 +1054,8 @@ static gboolean
 drain_gray_stack (ScanCopyContext ctx)
 {
        gboolean evacuation = FALSE;
-       for (int i = 0; i < num_block_obj_sizes; ++i) {
+       int i;
+       for (i = 0; i < num_block_obj_sizes; ++i) {
                if (evacuate_block_obj_sizes [i]) {
                        evacuation = TRUE;
                        break;