From f72e571b185279a612e76abea76e6f43cb9cccb0 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Wed, 15 May 2013 18:32:55 +0000 Subject: [PATCH] Fix two possible signed left shift overflows. git-svn-id: https://svn.eduke32.com/eduke32@3773 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/mdsprite.c | 2 +- polymer/eduke32/source/game.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/mdsprite.c b/polymer/eduke32/build/src/mdsprite.c index c95f5fb78..34a7f85d5 100644 --- a/polymer/eduke32/build/src/mdsprite.c +++ b/polymer/eduke32/build/src/mdsprite.c @@ -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<qfacind[i] = -1; i = ((max(ysiz,zsiz)+1)<<2); diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 8f192c418..98e317212 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -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;