From cc4de7a3cc20aab13430bad461a4e1e35cca794d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 28 Nov 2022 10:46:35 +0900 Subject: Improve code of commit 856ba6b4 Signed-off-by: Michele Calgaro --- 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 30e986870..204fb46e2 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 = { - { 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 ) } + { static_cast( i_ms / 1000 ), static_cast( (i_ms % 1000) * 1000 ) }, + { static_cast( ms / 1000 ), static_cast( (ms % 1000) * 1000 ) } }; setitimer(ITIMER_VIRTUAL, &tv, &oldtv); } -- cgit v1.2.1