Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 670d0b5

Browse files
authored
Merge pull request #2675 from BorisCarvajal/fix-unittest-crash
Fix issue 20048: Unittest printing fails on Windows when using msvcr100.dll merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2 parents e691d7c + e0aaac6 commit 670d0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/runtime.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ extern (C) UnitTestResult runModuleUnitTests()
646646
catch ( Throwable e )
647647
{
648648
import core.stdc.stdio;
649-
printf("%.*s(%zu): [unittest] %.*s\n",
650-
cast(int) e.file.length, e.file.ptr, e.line,
649+
printf("%.*s(%llu): [unittest] %.*s\n",
650+
cast(int) e.file.length, e.file.ptr, cast(ulong) e.line,
651651
cast(int) e.message.length, e.message.ptr);
652652
if ( typeid(e) == typeid(AssertError) )
653653
{

0 commit comments

Comments
 (0)