From 9c847647a1f3c257aaa8c0d4ec718e68888984ba Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Mon, 12 Feb 2018 19:54:10 +0000
Subject: [PATCH] Another compile fix error

---
 src/data.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/data.c b/src/data.c
index 71781aa..fbaa7fb 100644
--- a/src/data.c
+++ b/src/data.c
@@ -304,9 +304,10 @@
     find_replace(labelpath, ".JPG", ".txt", labelpath);
     find_replace(labelpath, ".JPEG", ".txt", labelpath);
     int count = 0;
+	int i;
     box_label *boxes = read_boxes(labelpath, &count);
 	if (small_object == 1) {
-		for (int i = 0; i < count; ++i) {
+		for (i = 0; i < count; ++i) {
 			if (boxes[i].w < 0.01) boxes[i].w = 0.01;
 			if (boxes[i].h < 0.01) boxes[i].h = 0.01;
 		}
@@ -316,7 +317,6 @@
     if(count > num_boxes) count = num_boxes;
     float x,y,w,h;
     int id;
-    int i;
 
     for (i = 0; i < count; ++i) {
         x =  boxes[i].x;

--
Gitblit v1.10.0