From f8453ccf3e0b30e1e93b5daeb2c95af0c90da6fd Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 26 Nov 2022 13:02:06 +0900 Subject: Improve code of commit 76c89b8. Signed-off-by: Michele Calgaro --- src/kile/kilejscript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kile/kilejscript.cpp b/src/kile/kilejscript.cpp index 2e69338..6008168 100644 --- a/src/kile/kilejscript.cpp +++ b/src/kile/kilejscript.cpp @@ -67,8 +67,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.3