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

Commit

Permalink
_abs should be private
Browse files Browse the repository at this point in the history
  • Loading branch information
burner committed Apr 19, 2015
1 parent 111892f commit 7868acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/time.d
Expand Up @@ -4282,12 +4282,12 @@ unittest
/+
Local version of abs, since std.math.abs is in Phobos, not druntime.
+/
long _abs(long val) @safe pure nothrow @nogc
private long _abs(long val) @safe pure nothrow @nogc
{
return val >= 0 ? val : -val;
}

double _abs(double val) @safe pure nothrow @nogc
private double _abs(double val) @safe pure nothrow @nogc
{
return val >= 0.0 ? val : -val;
}
Expand Down

0 comments on commit 7868acc

Please sign in to comment.