summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/llcommon/llsd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcommon/llsd.cpp b/indra/llcommon/llsd.cpp
index 862b6b5ebc..b0801745d7 100644
--- a/indra/llcommon/llsd.cpp
+++ b/indra/llcommon/llsd.cpp
@@ -964,7 +964,7 @@ std::string LLSD::typeString(Type type)
"Array"
};
- if (0 <= type < (sizeof(sTypeNameArray)/sizeof(sTypeNameArray[0])))
+ if (0 <= type && type < (sizeof(sTypeNameArray)/sizeof(sTypeNameArray[0])))
{
return sTypeNameArray[type];
}