]> granicus.if.org Git - graphviz/commitdiff
Add missing parentheses to RectArea calculation.
authorRob Hart <robhart@google.com>
Thu, 3 Dec 2020 10:48:32 +0000 (02:48 -0800)
committerRob Hart <robhart@google.com>
Thu, 3 Dec 2020 10:48:32 +0000 (02:48 -0800)
lib/label/rectangle.c

index b57b73265b69fb159dd783b4d0066c9c6a46ab3c..a3285895ddbc22dd6c6a7184ecbc9cc547db7324 100644 (file)
@@ -135,7 +135,7 @@ unsigned int RectArea(Rect_t * r)
      */
     area = 1;
     for (i = 0; i < NUMDIMS; i++) {
-      long long a_test = area * r->boundary[i + NUMDIMS] - r->boundary[i];
+      long long a_test = area * (r->boundary[i + NUMDIMS] - r->boundary[i]);
       if( a_test > UINT_MAX) {
        agerr (AGERR, "label: area too large for rtree\n");
        return UINT_MAX;