Make sure we only try to handle the final dimension of the array

and not any intermediate ones in the case of a multidimensional character
array.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39786 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2010-12-09 04:30:33 +00:00
parent eb756d4264
commit 942fed9fa3
@@ -34,7 +34,7 @@ CStringTypeHandler::SupportsType(Type* type)
modifiedType = dynamic_cast<ModifiedType*>(
addressType->BaseType());
}
} else if (arrayType != NULL) {
} else if (arrayType != NULL && arrayType->CountDimensions() == 1) {
baseType = dynamic_cast<PrimitiveType*>(
arrayType->BaseType());
if (baseType == NULL) {