diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2010-03-19 14:21:59 -0400 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2010-03-19 14:21:59 -0400 |
commit | a8582cfe6c1aa5e5f80458ac72d881a04ae0ba44 (patch) | |
tree | 93cbbc9e8013e2404ab2fe7740eccdf28dc966cf /support.cc | |
parent | 55d926192adc984462509b2966e23bc0d1129bbd (diff) | |
download | sgdisk-a8582cfe6c1aa5e5f80458ac72d881a04ae0ba44.tar.gz |
Changes to sector alignment policies and behavior when restoring a
backup fails
Diffstat (limited to 'support.cc')
-rw-r--r-- | support.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |