- Fixed: NewArray returned the element type, not the array type.

This commit is contained in:
Randy Heit 2013-08-07 20:04:05 -05:00
parent dbaf72772b
commit 12a312b6b4
1 changed files with 2 additions and 2 deletions

View File

@ -640,9 +640,9 @@ PArray *NewArray(PType *type, unsigned int count)
if (atype == NULL) if (atype == NULL)
{ {
atype = new PArray(type, count); atype = new PArray(type, count);
TypeTable.AddType(type, RUNTIME_CLASS(PArray), (intptr_t)type, count, bucket); TypeTable.AddType(atype, RUNTIME_CLASS(PArray), (intptr_t)type, count, bucket);
} }
return (PArray *)type; return (PArray *)atype;
} }
/* PVector ****************************************************************/ /* PVector ****************************************************************/