Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Commit cf4d09b

Browse files
committed
Phobos test runner: Do not truncate pointer to 32bits
This is wrong for 64 bit targets. According to POSIX, the length is of type int, but the pointer is a normal pointer type.
1 parent 3eb4e67 commit cf4d09b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libphobos/testsuite/test_runner.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ bool printAll()
4040
if (m.unitTest)
4141
{
4242
string name = m.name;
43-
printf("%.*s\n", cast(uint)name.length, cast(uint)name.ptr);
43+
printf("%.*s\n", cast(int)name.length, name.ptr);
4444
}
4545
}
4646
return true;

0 commit comments

Comments
 (0)