mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
ir_value_life_merge_into: fix a possible underflow
This commit is contained in:
parent
7cfb9425a0
commit
f042068aab
1 changed files with 2 additions and 2 deletions
4
ir.c
4
ir.c
|
@ -925,8 +925,8 @@ bool ir_value_life_merge_into(ir_value *self, const ir_value *other)
|
||||||
entry->start = life->start;
|
entry->start = life->start;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (life->end > entry->end &&
|
if (life->end > entry->end &&
|
||||||
life->start-1 <= entry->end)
|
life->start <= entry->end+1)
|
||||||
{
|
{
|
||||||
/* ends later and overlaps */
|
/* ends later and overlaps */
|
||||||
entry->end = life->end;
|
entry->end = life->end;
|
||||||
|
|
Loading…
Reference in a new issue