From 074fca117009def33f77bf1a998372febcdb3907 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 9 Aug 2022 17:44:27 -0700 Subject: [PATCH] xdot parseXDotFOn: squash -Wsign-compare warning --- lib/xdot/xdot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xdot/xdot.c b/lib/xdot/xdot.c index 865386df7..86058332d 100644 --- a/lib/xdot/xdot.c +++ b/lib/xdot/xdot.c @@ -341,7 +341,7 @@ xdot *parseXDotFOn (char *s, drawfunc_t fns[], int sz, xdot* x) if (!x) { x = gv_alloc(sizeof(*x)); - if (sz <= sizeof(xdot_op)) + if (sz < 0 || (size_t)sz <= sizeof(xdot_op)) sz = sizeof(xdot_op); /* cnt, freefunc, ops, flags zeroed by gv_alloc */ -- 2.50.1