summaryrefslogtreecommitdiff
path: root/bench1.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-10-27 06:52:59 -0400
committerJeffrey Walton <noloader@gmail.com>2018-10-27 06:52:59 -0400
commit8b00a9ff3fa30b048e892a1b3d77550d685b66a4 (patch)
tree6eaab4a01b82b5e584bca373d32bdbac942204c6 /bench1.cpp
parent5dfa9086b7d2c4e292449c5d5b873c16d0c59b8f (diff)
downloadcryptopp-git-8b00a9ff3fa30b048e892a1b3d77550d685b66a4.tar.gz
Fix compile error on AIX
Apparently "hz" is an identifier somewhere in the bowels AIX standard headers
Diffstat (limited to 'bench1.cpp')
-rw-r--r--bench1.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/bench1.cpp b/bench1.cpp
index 2fe6fd7d..6e8bc94e 100644
--- a/bench1.cpp
+++ b/bench1.cpp
@@ -45,19 +45,19 @@ double g_allocatedTime = 0.0, g_hertz = 0.0, g_logTotal = 0.0;
unsigned int g_logCount = 0;
time_t g_testBegin, g_testEnd;
-inline std::string HertzToString(double hz)
+inline std::string HertzToString(double hertz)
{
std::ostringstream oss;
oss.precision(3);
- if (hz >= 0.999e+9)
- oss << hz / 1e+9 << " GHz";
- else if (hz >= 0.999e+6)
- oss << hz / 1e+6 << " MHz";
- else if (hz >= 0.999e+3)
- oss << hz / 1e+3 << " KHz";
+ if (hertz >= 0.999e+9)
+ oss << hertz / 1e+9 << " GHz";
+ else if (hertz >= 0.999e+6)
+ oss << hertz / 1e+6 << " MHz";
+ else if (hertz >= 0.999e+3)
+ oss << hertz / 1e+3 << " KHz";
else
- oss << hz << " Hz";
+ oss << hertz << " Hz";
return oss.str();
}