Fix some integer shift overflows.

Thanks to Ozkan Sezer for pointing them out.
This commit is contained in:
Bill Currie 2012-01-30 09:13:06 +09:00
parent f8dfee6de7
commit e4f63fba6c
2 changed files with 2 additions and 2 deletions

View file

@ -500,7 +500,7 @@ R_ScanEdges (void)
edge_aftertail.prev = &edge_tail;
// FIXME: do we need this now that we clamp x in r_draw.c?
edge_sentinel.u = 2000 << 24; // make sure nothing sorts past this
edge_sentinel.u = 32767 << 16; // make sure nothing sorts past this
edge_sentinel.prev = &edge_aftertail;
// process all scan lines

View file

@ -480,7 +480,7 @@ R_ScanEdges (void)
edge_aftertail.prev = &edge_tail;
// FIXME: do we need this now that we clamp x in r_draw.c?
edge_sentinel.u = 2000 << 24; // make sure nothing sorts past this
edge_sentinel.u = 32767 << 16; // make sure nothing sorts past this
edge_sentinel.prev = &edge_aftertail;
// process all scan lines