Skip to content

Commit

Permalink
64-bit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Sep 29, 2012
1 parent c1d6b29 commit 4e3d43d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion abcreplace.d
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void main(string[] args)
while (*p++) {} // skip name
tag.data = tag.data[0..p-tag.data.ptr] ~ abc;
}
tag.length = tag.data.length;
tag.length = cast(uint)tag.data.length;
write(args[1], swf.write());
return;
}
Expand Down
2 changes: 1 addition & 1 deletion asprogram.d
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ private final class ABCtoAS
postConvertMultiname(multiname, multinames[i]);

methods.length = methodAdded.length = abc.methods.length;
foreach (i, ref method; abc.methods)
foreach (uint i, ref method; abc.methods)
methods[i] = convertMethod(method, i);

metadata.length = abc.metadata.length;
Expand Down
2 changes: 1 addition & 1 deletion assembler.d
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ final class Assembler
if (pindex)
n.id = *pindex;
else
n.id = namespaceLabels[name] = namespaceLabels.length+1;
n.id = namespaceLabels[name] = cast(uint)namespaceLabels.length+1;
}
expectChar(')');
return n;
Expand Down
2 changes: 1 addition & 1 deletion swfbinreplace.d
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void main(string[] args)
{
auto bin = cast(ubyte[])read(args[3]);
tag.data = tag.data[0..6] ~ bin;
tag.length = tag.data.length;
tag.length = cast(uint)tag.data.length;
write(args[1], swf.write());
return;
}
Expand Down

0 comments on commit 4e3d43d

Please sign in to comment.