Fix issue detected by static analysis tool 29/268929/1
authorInHong Han <inhong1.han@samsung.com>
Wed, 5 Jan 2022 02:37:27 +0000 (11:37 +0900)
committerInHong Han <inhong1.han@samsung.com>
Wed, 5 Jan 2022 02:42:09 +0000 (02:42 +0000)
Fix a sign extension issue

Change-Id: I108bad47c08b98185b76a7060e01c8e785342eb2

ism/src/scim_socket.cpp

index 11d64d5..d84a0ea 100644 (file)
@@ -812,7 +812,7 @@ private:
         if (*timeout >= 0) {
             gettimeofday (&begin_tv, 0);
             tv.tv_sec = *timeout / 1000;
-            tv.tv_usec = ((unsigned long int)*timeout % 1000) * 1000;
+            tv.tv_usec = ((long int)*timeout % 1000) * 1000;
         }
 
         m_err = 0;