diff --git a/code/qcommon/common.c b/code/qcommon/common.c index fd9f9b18..40fbde00 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -1376,7 +1376,7 @@ Touch all known used data to make sure it is paged in void Com_TouchMemory( void ) { int start, end; int i, j; - int sum; + unsigned sum; memblock_t *block; Z_CheckHeap(); diff --git a/code/qcommon/q_math.c b/code/qcommon/q_math.c index ce47317a..39382256 100644 --- a/code/qcommon/q_math.c +++ b/code/qcommon/q_math.c @@ -148,7 +148,7 @@ vec3_t bytedirs[NUMVERTEXNORMALS] = //============================================================== int Q_rand( int *seed ) { - *seed = (69069 * *seed + 1); + *seed = (69069U * *seed + 1U); return *seed; }