summaryrefslogtreecommitdiff
path: root/support.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2010-03-19 14:21:59 -0400
committersrs5694 <srs5694@users.sourceforge.net>2010-03-19 14:21:59 -0400
commita8582cfe6c1aa5e5f80458ac72d881a04ae0ba44 (patch)
tree93cbbc9e8013e2404ab2fe7740eccdf28dc966cf /support.cc
parent55d926192adc984462509b2966e23bc0d1129bbd (diff)
downloadsgdisk-a8582cfe6c1aa5e5f80458ac72d881a04ae0ba44.tar.gz
Changes to sector alignment policies and behavior when restoring a
backup fails
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