summaryrefslogtreecommitdiff
path: root/attributes.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 /attributes.cc
parent55d926192adc984462509b2966e23bc0d1129bbd (diff)
downloadsgdisk-a8582cfe6c1aa5e5f80458ac72d881a04ae0ba44.tar.gz
Changes to sector alignment policies and behavior when restoring a
backup fails
Diffstat (limited to 'attributes.cc')
-rw-r--r--attributes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/attributes.cc b/attributes.cc
index ac9f1fc..f210522 100644
--- a/attributes.cc
+++ b/attributes.cc
@@ -73,7 +73,7 @@ void Attributes::ChangeAttributes(void) {
do {
response = GetNumber(0, 64, -1, (string) "Toggle which attribute field (0-63, 64 to exit): ");
if (response != 64) {
- bitValue = PowerOf2(NUM_ATR - response - 1); // Find the integer value of the bit
+ bitValue = PowerOf2(uint32_t (NUM_ATR - response - 1)); // Find the integer value of the bit
if ((bitValue & attributes) == bitValue) { // bit is set
attributes -= bitValue; // so unset it
cout << "Have disabled the '" << atNames[response] << "' attribute.\n";