From 2c5076cc7ad141d8246626ab1a82e65f1c126d59 Mon Sep 17 00:00:00 2001 From: bigbear Date: Thu, 8 Feb 2024 02:46:56 +0100 Subject: FIX CodeQL warnings --- deps/uber-graph/uber-timeout-interval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deps/uber-graph/uber-timeout-interval.c') diff --git a/deps/uber-graph/uber-timeout-interval.c b/deps/uber-graph/uber-timeout-interval.c index 79b55947..4a4cf52a 100644 --- a/deps/uber-graph/uber-timeout-interval.c +++ b/deps/uber-graph/uber-timeout-interval.c @@ -131,8 +131,8 @@ _uber_timeout_interval_compare_expiration (const UberTimeoutInterval *a, b_difference = a->start_time - b->start_time; - comparison = ((gint) ((a->frame_count + 1) * a_delay) - - (gint) ((b->frame_count + 1) * b_delay + b_difference)); + comparison = ((gint) (((gint64)a->frame_count + 1) * a_delay) + - (gint) (((gint64)b->frame_count + 1) * b_delay + b_difference)); return (comparison < 0 ? -1 : comparison > 0 ? 1 -- cgit v1.2.3