Skip to content

Commit

Permalink
Fix a conversion warning in the v4 solvemsg module.
Browse files Browse the repository at this point in the history
  • Loading branch information
SadieCat committed Apr 15, 2024
1 parent f2ece54 commit 4c4bc00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 4/m_solvemsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class CommandSolve final
return CmdResult::FAILURE;
}

int result = ConvToNum<int>(parameters[0]);
const auto result = ConvToNum<unsigned long>(parameters[0]);
if (result != (problem->first + problem->second))
{
user->WriteNotice(INSP_FORMAT("*** {} is not the correct answer.", parameters[0]));
Expand Down

0 comments on commit 4c4bc00

Please sign in to comment.