From 856ba6b472dbfd1626448345dbd22996203da06a Mon Sep 17 00:00:00 2001 From: Ray-V Date: Thu, 24 Nov 2022 14:47:41 +0000 Subject: Insert an explicit cast for -Wc++11-narrowing error with a clang/i?86 build Signed-off-by: Ray-V --- tdehtml/ecma/kjs_proxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tdehtml/ecma') 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); } -- cgit v1.2.1