Fix implicitly cast issue 27/139927/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 21 Jul 2017 05:34:16 +0000 (14:34 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 21 Jul 2017 07:17:57 +0000 (07:17 +0000)
The '_t1.tv_sec * 1000000' expression was implicitly cast from 'long' type to 'float' type.

Change-Id: If21fa998471b1b93ebffe18bd5845269594d8ed3
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/src/scim_utility.cpp

index a9b08c0..eceb7f0 100644 (file)
@@ -1487,7 +1487,7 @@ void ISF_PROF_DEBUG_TIME_END (char const* format, char const* func, int line)
 /* Measure elapsed time */
 void ISF_PROF_DEBUG_TIME (char const* func, int line, char const* str)
 {
-    float etime = 0.0;
+    double etime = 0.0;
 
     if (_t0.tv_sec == 0 && _t0.tv_usec == 0) {
         gettimeofday (&_t0, NULL);