From c8428fa67a4c77fc1aec6f5fde7b95da4aca557d Mon Sep 17 00:00:00 2001 From: Sherief Farouk Date: Wed, 7 Aug 2013 18:43:29 -0400 Subject: [PATCH] Added value range assertions to prevent static analysis false-positives on Clang. --- code/FBXConverter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index 3a21a89ee..3ad6790f7 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -547,6 +547,10 @@ private: default: ai_assert(false); } + + ai_assert((order[0] >= 0) && (order[0] <= 2)); + ai_assert((order[1] >= 0) && (order[1] <= 2)); + ai_assert((order[2] >= 0) && (order[2] <= 2)); if(!is_id[order[0]]) { out = temp[order[0]];