Fix an integer shift overflow.

Thanks to Ozkan Sezer for pointing it out.
This commit is contained in:
Bill Currie 2012-01-30 22:20:35 +09:00
parent 5270c22b4d
commit 2a9a9caf51

View file

@ -628,7 +628,7 @@ void 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;
//