[Fix] fix svace issue.
authorSuYeon <suyeon5.kim@samsung.com>
Wed, 21 Jun 2023 03:42:23 +0000 (12:42 +0900)
committergichan-jang <56856496+gichan-jang@users.noreply.github.com>
Wed, 21 Jun 2023 05:53:48 +0000 (14:53 +0900)
Fix data type of distance value in 'g_array_set_size' (gint -> guint64)

Signed-off-by: SuYeon <suyeon5.kim@samsung.com>
ext/nnstreamer/tensor_decoder/tensordec-boundingbox.c

index f9d624b..0bafa3f 100644 (file)
@@ -1297,8 +1297,8 @@ update_centroids (void **pdata, GArray * boxes)
         int bcy = box->y + box->height / 2;
 
         d->distance =
-            (guint64) ((c->cx - bcx) * (c->cx - bcx)
-                     + (c->cy - bcy) * (c->cy - bcy));
+            (guint64) ((c->cx - bcx) * (c->cx - bcx))
+                     +  (guint64) ((c->cy - bcy) * (c->cy - bcy));
       }
     }
   }