Skip to content

Commit

Permalink
std.math: unittest isn't @safe
Browse files Browse the repository at this point in the history
* The unittest isn't @safe (taking address of a local variable
+ pointer cast)
  • Loading branch information
jpf91 committed Mar 31, 2016
1 parent 3d15c1f commit fc7ab7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/math.d
Expand Up @@ -5460,7 +5460,7 @@ real NaN(ulong payload) @trusted pure nothrow @nogc
}
}

@safe pure nothrow @nogc unittest
pure nothrow @nogc unittest
{
static if (floatTraits!(real).realFormat == RealFormat.ieeeDouble)
{
Expand Down

0 comments on commit fc7ab7f

Please sign in to comment.