Bug 929466: Cast '0' + known-small-uint32_t to type "char" in comparison within mar.c, to fix sign-compare build warning. r=bbondy

This commit is contained in:
Daniel Holbert 2013-10-23 08:22:32 +02:00
parent 4b9ceed950
commit cc038cbc31

View File

@ -154,7 +154,7 @@ int main(int argc, char **argv) {
with the import and export command line arguments. */
else if (argv[1][0] == '-' &&
argv[1][1] == 'D' &&
(argv[1][2] == '0' + certCount || argv[1][2] == '\0')) {
(argv[1][2] == (char)('0' + certCount) || argv[1][2] == '\0')) {
if (certCount >= MAX_SIGNATURES) {
print_usage();
return -1;