diff options
| author | 2021-05-30 20:37:54 +0100 | |
|---|---|---|
| committer | 2021-05-30 20:37:54 +0100 | |
| commit | 02340285c564a7e82105137192d46d554a6fce3a (patch) | |
| tree | 696d1a6249841de62c3fed70310c2a347fc66732 /src/modules/m_showfile.cpp | |
| parent | Add a workaround for a bug in GitHub Actions. (diff) | |
Added -Wshorten-64-to-32 and fixed all warnings.
Diffstat (limited to 'src/modules/m_showfile.cpp')
| -rw-r--r-- | src/modules/m_showfile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp index dff520a11..92bb67470 100644 --- a/src/modules/m_showfile.cpp +++ b/src/modules/m_showfile.cpp @@ -81,9 +81,9 @@ class CommandShowFile : public Command { introtext = tag->getString("introtext", "Showing " + name); endtext = tag->getString("endtext", "End of " + name); - intronumeric = tag->getUInt("intronumeric", RPL_RULESTART, 0, 999); - textnumeric = tag->getUInt("numeric", RPL_RULES, 0, 999); - endnumeric = tag->getUInt("endnumeric", RPL_RULESEND, 0, 999); + intronumeric = static_cast<unsigned int>(tag->getUInt("intronumeric", RPL_RULESTART, 0, 999)); + textnumeric = static_cast<unsigned int>(tag->getUInt("numeric", RPL_RULES, 0, 999)); + endnumeric = static_cast<unsigned int>(tag->getUInt("endnumeric", RPL_RULESEND, 0, 999)); std::string smethod = tag->getString("method"); method = SF_NUMERIC; |
