Fix variable type mismatch issues 75/320875/5 accepted/tizen/9.0/unified/20241129.021423
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 25 Nov 2024 06:09:50 +0000 (15:09 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 26 Nov 2024 07:02:55 +0000 (16:02 +0900)
To resolve svace issues and compare value clearly, type converting is added.

Change-Id: Ic7987efc3ae3dd5deb95d677646c34e13fbaa325
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/battery-monitor/battery-monitor.c

index f935eb57eb3d238b56430f59a8d90d04e374d7d9..a25ae325d68d94589af2f40eccfab7e1df984dbd 100644 (file)
@@ -350,8 +350,8 @@ static void bds_builder_update_bds_data(void)
 
        /* if size(ht_apptime) is 0, there are no measurement(lcd off state) */
        if (g_hash_table_size(ht_apptime)) {
-               t_start = bds_get_start_time_sec();
-               t_end = bds_get_end_time_sec();
+               t_start = (gint64)bds_get_start_time_sec();
+               t_end = (gint64)bds_get_end_time_sec();
        }
 
        /* convert app_time_map_st1 to gvariant array */