More mac fixes

This commit is contained in:
baldurk committed 2022-11-13 15:26:09 +00:00
1 parent a1240f5f04
commit 1755176b1a
1 file changed
+6 -3
+6 -3
View File
@@ -169,7 +169,8 @@ static NS::Array *CreateUnwrappedNSArray(rdcarray<typename UnwrapHelper<MTL_TYPE
int count = from.count();
if(count)
{
rdcarray<MTL_TYPE> unwrapped(count);
rdcarray<MTL_TYPE> unwrapped;
unwrapped.resize(count);
for(int i = 0; i < count; ++i)
{
unwrapped[i] = Unwrap(from[i]);
@@ -358,8 +359,10 @@ void LinkedFunctions::CopyTo(MTL::LinkedFunctions *objc)
int countKeys = groups.count();
if(countKeys)
{
rdcarray<NS::Array *> values(countKeys);
rdcarray<NS::String *> keys(countKeys);
rdcarray<NS::Array *> values;
rdcarray<NS::String *> keys;
keys.resize(countKeys);
values.resize(countKeys);
for(int i = 0; i < countKeys; ++i)
{
FunctionGroup &funcGroup = groups[i];