From 07d98a33c219c3f01a11af205840c170f6b54917 Mon Sep 17 00:00:00 2001 From: "R. Timothy Edwards" Date: Wed, 8 Jul 2026 09:51:37 -0400 Subject: [PATCH] Fixed a negative tile width calculation in ResMakeRes.c, as pointed out by github user "LegumeEmittingDiode". I agree with the suggested fix and have implemented it exactly as suggested in github issue #537. --- resis/ResMakeRes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resis/ResMakeRes.c b/resis/ResMakeRes.c index 7cd53121..12d1a8e9 100644 --- a/resis/ResMakeRes.c +++ b/resis/ResMakeRes.c @@ -147,7 +147,7 @@ ResCalcEastWest(tile, pendingList, doneList, resList) p1 = info->breakList; if (p1->br_next == NULL) { - p1->br_this->rn_float.rn_area += height * (LEFT(tile) - RIGHT(tile)); + p1->br_this->rn_float.rn_area += height * (RIGHT(tile) - LEFT(tile)); freeMagic((char *)p1); info->breakList = NULL; return(merged);