summaryrefslogtreecommitdiff
path: root/attributes.cc
diff options
context:
space:
mode:
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";