Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSmith33 committed May 26, 2024
1 parent 70525e7 commit 3c9e06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vox/utils/numfmt.d
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int calcScale2(Num)(Num val)
{
import std.math: abs, round, log2;

auto lg = log2(abs(val));
auto lg = log2(cast(double)abs(val));
double absLog = abs(lg);

int scale = cast(int)(round(absLog/10.0))*10;
Expand Down

0 comments on commit 3c9e06b

Please sign in to comment.