From: James Turner Date: Wed, 19 Sep 2012 14:55:49 +0000 (+0100) Subject: Fix a Clang warning in Shiva. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b5507689732889c84332525a9e58894f6170d37;p=simgear.git Fix a Clang warning in Shiva. --- diff --git a/simgear/canvas/ShivaVG/src/shParams.c b/simgear/canvas/ShivaVG/src/shParams.c index 2535c149..79eb7ee5 100644 --- a/simgear/canvas/ShivaVG/src/shParams.c +++ b/simgear/canvas/ShivaVG/src/shParams.c @@ -132,10 +132,10 @@ int shIsEnumValid(SHint type, VGint val) val == VG_COLOR_RAMP_SPREAD_REFLECT); case VG_PAINT_PATTERN_TILING_MODE: - return (VG_TILE_FILL || - VG_TILE_PAD || - VG_TILE_REPEAT || - VG_TILE_REFLECT); + return (val == VG_TILE_FILL || + val == VG_TILE_PAD || + val == VG_TILE_REPEAT || + val == VG_TILE_REFLECT); case VG_IMAGE_FORMAT: return (val >= VG_sRGBX_8888 &&