diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2015-08-24 21:45:08 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2015-08-29 13:05:50 -0500 |
commit | 03af1408410e3e1ab0952e1fab6d7acf94b014ef (patch) | |
tree | 466b9b3c84587aaaafaf873280db147878dcd59e /dblbuf.c | |
parent | 87b3c456c7cc68719dcc33045a6f6866630f692f (diff) |
use xor instead of incrementing blink
Because blink is a signed integer, an eventual overflow would result in
undefined behavior.
Diffstat (limited to 'dblbuf.c')
-rw-r--r-- | dblbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -176,7 +176,7 @@ void uudisp_refresh(struct uudisp *d, struct uuterm *t) blit_slice(d, idx, x1, x2); } - if (d->blink & 1) { + if (d->blink) { unsigned long rev = expand_color(d, 15); int idx = t->rows[t->y]->idx; b->slices[idx].colors[2*t->x] ^= rev; |