LLSD-14: Fix silly syntax error in subscript bounds check.

meow-7.2.2
Nat Goodspeed 2011-11-17 10:02:05 -05:00
parent cc1fb7bcac
commit e62c691aab
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}