summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2011-11-17 10:02:05 -0500
committerNat Goodspeed <nat@lindenlab.com>2011-11-17 10:02:05 -0500
commite62c691aab36b50d3eecb99310d5652d0b8e6f23 (patch)
tree60cffef87ab53d86141bb28ee201847513125c01
parentcc1fb7bcac2924674763d917f66d84fbadb11623 (diff)
LLSD-14: Fix silly syntax error in subscript bounds check.
-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];
}