mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Fix two possible signed left shift overflows.
git-svn-id: https://svn.eduke32.com/eduke32@3773 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
663f9af75b
commit
f72e571b18
2 changed files with 2 additions and 2 deletions
|
@ -2834,7 +2834,7 @@ static voxmodel_t *vox2poly()
|
|||
memset(shcntmal,0,i); shcnt = &shcntmal[-shcntp-1];
|
||||
gmaxx = gmaxy = garea = 0;
|
||||
|
||||
if (pow2m1[32] != -1) { for (i=0; i<32; i++) pow2m1[i] = (1<<i)-1; pow2m1[32] = -1; }
|
||||
if (pow2m1[32] != -1) { for (i=0; i<32; i++) pow2m1[i] = (1u<<i)-1; pow2m1[32] = -1; }
|
||||
for (i=0; i<7; i++) gvox->qfacind[i] = -1;
|
||||
|
||||
i = ((max(ysiz,zsiz)+1)<<2);
|
||||
|
|
|
@ -177,7 +177,7 @@ static void G_DrawCameraText(int16_t i);
|
|||
GAME_STATIC GAME_INLINE int32_t G_MoveLoop(void);
|
||||
static void G_DoOrderScreen(void);
|
||||
|
||||
#define quotepulseshade (sintable[(totalclock<<5)&2047]>>11)
|
||||
#define quotepulseshade (sintable[((uint32_t)totalclock<<5)&2047]>>11)
|
||||
|
||||
int32_t althud_numbertile = 2930;
|
||||
int32_t althud_numberpal = 0;
|
||||
|
|
Loading…
Reference in a new issue