Skip to content

Commit 6c9bfb2

Browse files
committed
Fix std.conv unittest compile error for double-precision reals
strtod() is @System and thus can't be called from a @safe unittest.
1 parent c07c3ce commit 6c9bfb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/conv.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3032,7 +3032,7 @@ Target parse(Target, Source)(ref Source source)
30323032
}
30333033

30343034
//Tests for the double implementation
3035-
@safe unittest
3035+
unittest
30363036
{
30373037
static if (real.mant_dig == 53)
30383038
{

0 commit comments

Comments
 (0)