input: Add typecasting to avoid static analysis issue 69/296769/2
authorYunhee Seo <yuni.seo@samsung.com>
Fri, 4 Aug 2023 04:48:27 +0000 (13:48 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 8 Aug 2023 02:33:15 +0000 (11:33 +0900)
Add typecasting to avoid static analysis issue

Change-Id: I4be23e93b2e67854d3bbd93bc758e18b7daa8e3a
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/input/input.c

index 3b3f067..2af2562 100644 (file)
@@ -91,7 +91,7 @@ static int convert_libinput_to_event(struct libinput_event *li_event, struct inp
                time = libinput_event_keyboard_get_time(k);
 
                event->time.tv_sec = (time / 1000);
-               event->time.tv_usec = MSEC_TO_USEC(time % 1000);
+               event->time.tv_usec = (suseconds_t)MSEC_TO_USEC(time % 1000);
                event->type = EV_KEY;
                event->code = libinput_event_keyboard_get_key(k);
                event->value = libinput_event_keyboard_get_key_state(k);