summaryrefslogtreecommitdiff
path: root/support.cc
diff options
context:
space:
mode:
Diffstat (limited to 'support.cc')
-rw-r--r--support.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/support.cc b/support.cc
index ab8f767..11c6200 100644
--- a/support.cc
+++ b/support.cc
@@ -246,11 +246,11 @@ void ReverseBytes(void* theValue, int numBytes) {
// Compute (2 ^ value). Given the return type, value must be 63 or less.
// Used in some bit-fiddling functions
-uint64_t PowerOf2(int value) {
+uint64_t PowerOf2(uint32_t value) {
uint64_t retval = 1;
- int i;
+ uint32_t i;
- if ((value < 64) && (value >= 0)) {
+ if (value < 64) {
for (i = 0; i < value; i++) {
retval *= 2;
} // for