Created
January 14, 2017 00:24
-
-
Save tuxillo/dea8b9d379dac9d8fc92650cf9288f3d to your computer and use it in GitHub Desktop.
Attempt to fix build in SunOS-like environments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From fcc2307568fe2a92bef6783f0937bc34552f28a2 Mon Sep 17 00:00:00 2001 | |
From: Antonio Huete Jimenez <[email protected]> | |
Date: Sat, 14 Jan 2017 00:16:43 +0000 | |
Subject: [PATCH 1/2] Add missing cast to double | |
--- | |
src/commands/CmdBurndown.cpp | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/src/commands/CmdBurndown.cpp b/src/commands/CmdBurndown.cpp | |
index 9dae59d..c54abad 100644 | |
--- a/src/commands/CmdBurndown.cpp | |
+++ b/src/commands/CmdBurndown.cpp | |
@@ -902,7 +902,7 @@ unsigned Chart::burndown_size (unsigned ntasks) | |
// Choose the number from here rounded up to the nearest 10% of the next | |
// highest power of 10 or half of power of 10. | |
- const unsigned count = (unsigned) log10 (std::numeric_limits<unsigned>::max ()); | |
+ const unsigned count = (unsigned) log10 (static_cast<double>(std::numeric_limits<unsigned>::max ())); | |
unsigned half = 500; | |
unsigned full = 1000; | |
-- | |
2.10.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment