Skip to content

Commit

Permalink
Fix printf argument size on x64.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Dec 10, 2021
1 parent 8193e0d commit 9313647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/source/dmdscript/irstate.d
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct IRstate
{
assert(codebuf.offset <= codebuf.data.length);
if(codebuf.data.length > codebuf.data.capacity)
printf("ptr %p, length %d, capacity %d\n", codebuf.data.ptr, codebuf.data.length, core.memory.GC.sizeOf(codebuf.data.ptr));
printf("ptr %p, length %d, capacity %d\n", codebuf.data.ptr, cast(uint)codebuf.data.length, cast(uint)core.memory.GC.sizeOf(codebuf.data.ptr));
assert(codebuf.data.length <= codebuf.data.capacity);
for(uint u = 0; u < codebuf.offset; )
{
Expand Down

0 comments on commit 9313647

Please sign in to comment.