]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Fix a possible endless loop in ir_values_overlap
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 14:38:36 +0000 (16:38 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 14:38:36 +0000 (16:38 +0200)
ir.c

diff --git a/ir.c b/ir.c
index 1d4d047b9e480b6e7961042cb0927b21312d5286..cd35d8313f72f15ef0543d130d45bcf244723ccf 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -977,7 +977,7 @@ bool ir_values_overlap(const ir_value *a, const ir_value *b)
             if (++la == enda)
                 break;
         }
-        else if (lb->start < la->start)
+        else /* if (lb->start < la->start)  actually <= */
         {
             /* order: B A, move B forward
              * check if we hit the end with B