[CodeClean] typecast of size
authorJaeyun Jung <jy1210.jung@samsung.com>
Tue, 18 Jun 2024 03:25:17 +0000 (12:25 +0900)
committerSangjung Woo <again4you@gmail.com>
Thu, 11 Jul 2024 09:30:38 +0000 (18:30 +0900)
Code clean to fix svace issue, typecast of size and index value.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
ext/nnstreamer/tensor_filter/tensor_filter_movidius_ncsdk2.c

index db02ad9..3713722 100644 (file)
@@ -190,7 +190,7 @@ _mvncsdk2_open (const GstTensorFilterProperties * prop, void **private_data)
   }
 
   /* Warning: conversion unsigned long to unsigned int */
-  len_model_file = g_mapped_file_get_length (file_model);
+  len_model_file = (guint32) g_mapped_file_get_length (file_model);
   buf_model_file = (void *) g_mapped_file_get_contents (file_model);
 
   /* Actually, send the model to the device */