Permalink
Browse files

64-bit fixes

1 parent c1d6b29 commit 4e3d43df5f59bac2cbcecafd82a34919efd11af5 @CyberShadow committed Sep 29, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 abcreplace.d
  2. +1 −1 asprogram.d
  3. +1 −1 assembler.d
  4. +1 −1 swfbinreplace.d
View
@@ -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;
}
View
@@ -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;
View
@@ -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;
View
@@ -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;
}

0 comments on commit 4e3d43d

Please sign in to comment.