diff options
author | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-07-03 21:08:32 +0000 |
---|---|---|
committer | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-07-03 21:08:32 +0000 |
commit | b1e1b4250451d45673c5f5ca895c59103586d3fa (patch) | |
tree | ee4b2c14de08c40a463a489a43a948f168385540 /hrtimer.cpp | |
parent | 95472b9b3efe233a17e370566011780bbffa9d31 (diff) | |
download | cryptopp-b1e1b4250451d45673c5f5ca895c59103586d3fa.tar.gz |
Cut-over to COUNTOF in source files
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@570 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'hrtimer.cpp')
-rw-r--r-- | hrtimer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hrtimer.cpp b/hrtimer.cpp index 906ec4a..cd268bf 100644 --- a/hrtimer.cpp +++ b/hrtimer.cpp @@ -24,7 +24,7 @@ double TimerBase::ConvertTo(TimerWord t, Unit unit) { static unsigned long unitsPerSecondTable[] = {1, 1000, 1000*1000, 1000*1000*1000}; - assert(unit < sizeof(unitsPerSecondTable) / sizeof(unitsPerSecondTable[0])); + assert(unit < COUNTOF(unitsPerSecondTable)); return (double)CRYPTOPP_VC6_INT64 t * unitsPerSecondTable[unit] / CRYPTOPP_VC6_INT64 TicksPerSecond(); } |