Skip to content

Commit

Permalink
Fix 5880f14: Integer width warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsmh authored and LordAro committed Feb 6, 2020
1 parent 3fcb240 commit 805ecd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/console_cmds.cpp
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 805ecd3

Please sign in to comment.