From: Wolfgang (Blub) Bumiller Date: Thu, 16 Aug 2012 14:38:36 +0000 (+0200) Subject: Fix a possible endless loop in ir_values_overlap X-Git-Tag: 0.1-rc1~242 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=32c095b6229d5d1522d5fc8c4f2e2d2a5f681bd4;p=xonotic%2Fgmqcc.git Fix a possible endless loop in ir_values_overlap --- diff --git a/ir.c b/ir.c index 1d4d047..cd35d83 100644 --- 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