From a991907e13d9414fcae87b44dcde0a649b19a0eb Mon Sep 17 00:00:00 2001 From: SuYeon Date: Wed, 21 Jun 2023 12:42:23 +0900 Subject: [PATCH] [Fix] fix svace issue. Fix data type of distance value in 'g_array_set_size' (gint -> guint64) Signed-off-by: SuYeon --- ext/nnstreamer/tensor_decoder/tensordec-boundingbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/nnstreamer/tensor_decoder/tensordec-boundingbox.c b/ext/nnstreamer/tensor_decoder/tensordec-boundingbox.c index f9d624b..0bafa3f 100644 --- a/ext/nnstreamer/tensor_decoder/tensordec-boundingbox.c +++ b/ext/nnstreamer/tensor_decoder/tensordec-boundingbox.c @@ -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)); } } } -- 2.7.4