Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
clone fixups
  • Loading branch information
diakopter committed Nov 11, 2011
1 parent c52987f commit 8a63edd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/runtime/Init.lua
Expand Up @@ -154,7 +154,7 @@ function makeInit ()
local List = tmp1.instance_of(tmp1, TC, NQPList);
local NativeCapture = C;
for unused, Obj in ipairs(NativeCapture.Positionals) do
List.Storage:Add(Obj);
List.Add(List.Storage, Obj);
end
return List;
end),
Expand Down
4 changes: 2 additions & 2 deletions lua/runtime/Runtime/MultiDispatch/DispatchCache.lua
Expand Up @@ -67,8 +67,8 @@ function makeDispatchCache ()
New.Results[1] = Result;
else
New.NumEntries = Previous.NumEntries;
New.TypeIDs = Previous.TypeIDs:Clone();
New.Results = Previous.Results:Clone();
New.TypeIDs = List.Clone(Previous.TypeIDs);
New.Results = List.Clone(Previous.Results);

if (New.NumEntries <= MAX_ENTRIES) then
local i = 1;
Expand Down
2 changes: 1 addition & 1 deletion lua/runtime/Runtime/Ops/Metamodel.lua
Expand Up @@ -87,7 +87,7 @@ end
Ops[55] = Ops.type_check;

function Ops.publish_type_check_cache (TC, WHAT, TypeList)
WHAT.STable.TypeCheckCache = TypeList.Storage:Clone();
WHAT.STable.TypeCheckCache = List.Clone(TypeList.Storage);
end
Ops[56] = Ops.publish_type_check_cache;

Expand Down

0 comments on commit 8a63edd

Please sign in to comment.