From 73f0ee400e61311e4366c6e170d5f0cc04798bba Mon Sep 17 00:00:00 2001 From: Yunhee Seo Date: Fri, 4 Aug 2023 13:48:27 +0900 Subject: [PATCH] input: Add typecasting to avoid static analysis issue Add typecasting to avoid static analysis issue Change-Id: I4be23e93b2e67854d3bbd93bc758e18b7daa8e3a Signed-off-by: Yunhee Seo --- src/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/input.c b/src/input/input.c index 3b3f067..2af2562 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -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); -- 2.7.4