diff options
| author | Quentin Carbonneaux | 2015-02-13 17:01:53 -0500 |
|---|---|---|
| committer | Quentin Carbonneaux | 2015-02-13 17:04:27 -0500 |
| commit | b2af4fb863f43b67851a1cb59767e57a89c0b0cd (patch) | |
| tree | c9c7cd37b9a4adfc5175640c4e81499aac22462f | |
| parent | ecc068b38745dc55ef327fb4a1938297ed0e5f43 (diff) | |
fix bug in popalarm
This never caused a program failure because of the low
stress on the event module.
| -rw-r--r-- | evnt.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -178,6 +178,7 @@ popalarm() i = 1; ah[i] = ah[na--]; while ((j = 2 * i) <= na) { + if (j+1 <= na) if (tgt(ah[j].t, ah[j+1].t)) j++; if (!tgt(ah[i].t, ah[j].t)) |
