From: ellson Date: Sat, 28 Feb 2009 13:14:34 +0000 (+0000) Subject: add "assert (n >= 4);" to prevent macOSx checker from reporting divide_by_zero possib... X-Git-Tag: LAST_LIBGRAPH~32^2~2369 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e217ef75d05ec2d12d91df587faecd7e1163910;p=graphviz add "assert (n >= 4);" to prevent macOSx checker from reporting divide_by_zero possibility. --- diff --git a/plugin/core/gvrender_core_fig.c b/plugin/core/gvrender_core_fig.c index f51139b43..890ec06a5 100644 --- a/plugin/core/gvrender_core_fig.c +++ b/plugin/core/gvrender_core_fig.c @@ -345,6 +345,8 @@ static void fig_bezier(GVJ_t * job, pointf * A, int n, int arrow_at_start, int npoints = n; int i; + assert (n >= 4); + pointf pf, V[4]; point p; int j, step;