Changes to sector alignment policies and behavior when restoring a

backup fails
This commit is contained in:
srs5694
2010-03-19 14:21:59 -04:00
parent 55d926192a
commit a8582cfe6c
14 changed files with 122 additions and 34 deletions

View File

@@ -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";