Skip to content

Commit ae6cb21

Browse files
committed
clang-tidy: avoid promotion warning
This prints the ASCII value, not the number. Adding a + avoids the warning. Signed-off-by: Rosen Penev <[email protected]>
1 parent bcab647 commit ae6cb21

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/fujimn_int.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,15 @@ static std::ostream& printFujiDriveSetting(std::ostream& os, const Value& value,
295295
if (auto setting = Exiv2::find(fujiDriveSettingByte1, byte1)) {
296296
os << exvGettext(setting->label_);
297297
} else {
298-
os << "(" << byte1 << ")";
298+
os << "(" << +byte1 << ")";
299299
}
300300

301301
if (fps != 0) {
302302
os << ", " << fps << " fps";
303303
}
304304

305305
if (byte1 != 0) {
306-
os << ", (" << byte2 << ", " << byte3 << ")"; // unknown values
306+
os << ", (" << +byte2 << ", " << +byte3 << ")"; // unknown values
307307
}
308308
return os;
309309
}

src/pentaxmn_int.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ std::ostream& PentaxMakerNote::printBracketing(std::ostream& os, const Value& va
983983
os << _("Unknown ") << type;
984984
break;
985985
}
986-
os << " " << range;
986+
os << " " << +range;
987987
}
988988
os << ")";
989989
}

0 commit comments

Comments
 (0)