summaryrefslogtreecommitdiffstats
path: root/tdehtml
diff options
context:
space:
mode:
authorRay-V <ray-v@inbox.lv>2022-11-24 14:47:41 +0000
committerRay-V <ray-v@inbox.lv>2022-11-24 14:47:41 +0000
commit856ba6b472dbfd1626448345dbd22996203da06a (patch)
tree5d2aa076c02e3d1e91f92f1fb5e3afe7d8ebb2b4 /tdehtml
parent06a3b75538c36b4b42a226e263080fbbf0fd4531 (diff)
downloadtdelibs-856ba6b472dbfd1626448345dbd22996203da06a.tar.gz
tdelibs-856ba6b472dbfd1626448345dbd22996203da06a.zip
Insert an explicit cast for -Wc++11-narrowing error
with a clang/i?86 build Signed-off-by: Ray-V <ray-v@inbox.lv>
Diffstat (limited to 'tdehtml')
-rw-r--r--tdehtml/ecma/kjs_proxy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdehtml/ecma/kjs_proxy.cpp b/tdehtml/ecma/kjs_proxy.cpp
index 92185d7f4..30e986870 100644
--- a/tdehtml/ecma/kjs_proxy.cpp
+++ b/tdehtml/ecma/kjs_proxy.cpp
@@ -387,8 +387,8 @@ void KJSCPUGuard::start(unsigned int ms, unsigned int i_ms)
oldAlarmHandler = signal(SIGVTALRM, alarmHandler);
itimerval tv = {
- { i_ms / 1000, (i_ms % 1000) * 1000 },
- { ms / 1000, (ms % 1000) * 1000 }
+ { static_cast<__time_t>( i_ms / 1000 ), static_cast<__suseconds_t>( (i_ms % 1000) * 1000 ) },
+ { static_cast<__time_t>( ms / 1000 ), static_cast<__suseconds_t>( (ms % 1000) * 1000 ) }
};
setitimer(ITIMER_VIRTUAL, &tv, &oldtv);
}