diff options
author | /dev/humancontroller <devhc@example.com> | 2014-07-12 16:07:46 +0200 |
---|---|---|
committer | enneract <trem.redman@gmail.com> | 2014-07-12 17:06:40 +0200 |
commit | faabf7d64658ae47842b4ccabdb4b68513f3cdf7 (patch) | |
tree | c6068758e0e9b7cd504acb93e8830b95215f97d2 /src/renderer | |
parent | 267a7f3eb261f8e9ad63570a2f39e18fc2a91b1c (diff) |
fix a bunch of compiler warnings
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/tr_bsp.c | 4 | ||||
-rw-r--r-- | src/renderer/tr_scene.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/renderer/tr_bsp.c b/src/renderer/tr_bsp.c index 563bb36..059f9b9 100644 --- a/src/renderer/tr_bsp.c +++ b/src/renderer/tr_bsp.c @@ -264,6 +264,8 @@ static void R_LoadVisibility( lump_t *l ) { //=============================================================================== +#define LL(x) x=LittleLong(x) + /* =============== ShaderForShaderNum @@ -273,7 +275,7 @@ static shader_t *ShaderForShaderNum( int shaderNum, int lightmapNum ) { shader_t *shader; dshader_t *dsh; - shaderNum = LittleLong( shaderNum ); + LL( shaderNum ); if ( shaderNum < 0 || shaderNum >= s_worldData.numShaders ) { ri.Error( ERR_DROP, "ShaderForShaderNum: bad num %i", shaderNum ); } diff --git a/src/renderer/tr_scene.c b/src/renderer/tr_scene.c index 232cb68..973d4ac 100644 --- a/src/renderer/tr_scene.c +++ b/src/renderer/tr_scene.c @@ -220,7 +220,7 @@ void RE_AddRefEntityToScene( const refEntity_t *ent ) { } return; } - if ( ent->reType < 0 || ent->reType >= RT_MAX_REF_ENTITY_TYPE ) { + if ( (int)ent->reType < 0 || ent->reType >= RT_MAX_REF_ENTITY_TYPE ) { ri.Error( ERR_DROP, "RE_AddRefEntityToScene: bad reType %i", ent->reType ); } |