aboutsummaryrefslogtreecommitdiff
path: root/deps/uber-graph
diff options
context:
space:
mode:
authorbigbear <ns@bigbear.dk>2024-02-08 02:46:56 +0100
committerbigbear <ns@bigbear.dk>2024-02-08 19:52:53 +0100
commit2c5076cc7ad141d8246626ab1a82e65f1c126d59 (patch)
treea60afef0597c74964a2399c4c71a9caa5207ef34 /deps/uber-graph
parenteefbdc82d4f8c67f3e89782e6253da262edcf9c5 (diff)
FIX CodeQL warnings
Diffstat (limited to 'deps/uber-graph')
-rw-r--r--deps/uber-graph/g-ring.c2
-rw-r--r--deps/uber-graph/uber-timeout-interval.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/deps/uber-graph/g-ring.c b/deps/uber-graph/g-ring.c
index dc35635d..d865cc15 100644
--- a/deps/uber-graph/g-ring.c
+++ b/deps/uber-graph/g-ring.c
@@ -21,7 +21,7 @@
#include "g-ring.h"
#ifndef g_malloc0_n
-#define g_malloc0_n(x,y) g_malloc0(x * y)
+#define g_malloc0_n(x,y) g_malloc0((gsize)x * y)
#endif
#define get_element(r,i) ((r)->data + ((r)->elt_size * i))
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