diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-02-06 16:44:54 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-02-06 16:09:36 +0000 |
commit | 805ecd32be64e14d8555ebc06eadf673bdf401ee (patch) | |
tree | 89859f7a06c10b9952ced58774cae6c7729af6b6 /src | |
parent | 3fcb240f8e4d02aace63a7ba4a96284b3aedef86 (diff) | |
download | openttd-805ecd32be64e14d8555ebc06eadf673bdf401ee.tar.xz |
Fix 5880f147: Integer width warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/console_cmds.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index c4b454b51..30982d821 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -527,7 +527,7 @@ DEF_CONSOLE_CMD(ConKick) if (argc == 2) return ConKickOrBan(argv[1], false, nullptr); /* Reason for kicking supplied */ - int kick_message_length = strlen(argv[2]); + size_t kick_message_length = strlen(argv[2]); if (kick_message_length >= 255) { IConsolePrintF(CC_ERROR, "ERROR: Maximum kick message length is 254 characters. You entered %d characters.", kick_message_length); return false; @@ -551,7 +551,7 @@ DEF_CONSOLE_CMD(ConBan) if (argc == 2) return ConKickOrBan(argv[1], true, nullptr); /* Reason for kicking supplied */ - int kick_message_length = strlen(argv[2]); + size_t kick_message_length = strlen(argv[2]); if (kick_message_length >= 255) { IConsolePrintF(CC_ERROR, "ERROR: Maximum kick message length is 254 characters. You entered %d characters.", kick_message_length); return false; |