mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
Fix some integer shift overflows.
Thanks to Ozkan Sezer for pointing them out.
This commit is contained in:
parent
f8dfee6de7
commit
e4f63fba6c
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue