Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Karol Szuster <karolsz9898@gmail.com>
  • Loading branch information
Amaroq7 committed Mar 23, 2020
1 parent c4acbac commit cec1883
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/CmdSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ Command *CommandMngr::registerCommand(ICommand::Type type,
return registerCommandInternal<ClientCommand>(cmd, info, flags, cb, data).get();
case ICommand::Type::Server:
return registerCommandInternal<ServerCommand>(cmd, info, cb, data).get();
default:
return nullptr;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/MenuSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ Menu::Item *Menu::keyToItem(std::uint32_t key) const

Menu::Item *Menu::appendItem(std::string_view name, Item::Callback callback, std::any cbData, std::any data)
{
return _addItem(-1, name, callback, cbData, data);
return _addItem(static_cast<std::uint32_t>(-1), name, callback, cbData, data);
}

Menu::Item *Menu::insertItem(std::size_t position,
Expand Down
1 change: 1 addition & 0 deletions subprojects/sourcepawn/ExtMain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <unordered_map>
#include <array>
#include <vector>
#include <cstdarg>

#if defined SP_POSIX
#include <dlfcn.h>
Expand Down

0 comments on commit cec1883

Please sign in to comment.