diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2024-01-21 19:34:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-21 20:34:19 +0100 |
commit | 7f84bdf8fd5c93286f000bc5f9314eab81128cee (patch) | |
tree | d97974691eb50b7cd8a2bf8a7cbc342fdc7bdd44 /primedev/plugins/plugins.cpp | |
parent | e72f0cbbac6ffcbfbf0c52f14a2a3cb7c18ba8fc (diff) | |
download | NorthstarLauncher-7f84bdf8fd5c93286f000bc5f9314eab81128cee.tar.gz NorthstarLauncher-7f84bdf8fd5c93286f000bc5f9314eab81128cee.zip |
Address C4267 compiler warnings (#647)v1.22.2-rc1
Implicit conversion from `size_t` to a smaller type
Diffstat (limited to 'primedev/plugins/plugins.cpp')
-rw-r--r-- | primedev/plugins/plugins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/primedev/plugins/plugins.cpp b/primedev/plugins/plugins.cpp index 72b64566..311285e1 100644 --- a/primedev/plugins/plugins.cpp +++ b/primedev/plugins/plugins.cpp @@ -188,7 +188,7 @@ std::optional<Plugin> PluginManager::LoadPlugin(fs::path path, PluginInitFuncs* plugin.run_frame = (PLUGIN_RUNFRAME)GetProcAddress(pluginLib, "PLUGIN_RUNFRAME"); - plugin.handle = m_vLoadedPlugins.size(); + plugin.handle = (int)m_vLoadedPlugins.size(); plugin.logger = std::make_shared<ColoredLogger>(plugin.displayName.c_str(), NS::Colors::PLUGIN); RegisterLogger(plugin.logger); NS::log::PLUGINSYS->info("Loading plugin {} version {}", plugin.displayName, plugin.version); |