diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-10-03 18:39:10 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-10-03 18:39:10 +0300 |
commit | a8420ae8e2792f305c12840485c74899000ce4e4 (patch) | |
tree | 9f8899b946804b03de67ea2546105d46939bed5b /lib/configuration | |
parent | Update Readme (diff) | |
download | smolbote-a8420ae8e2792f305c12840485c74899000ce4e4.tar.xz |
Fix deprecated warning in meson.build
Fix warnings in libconfiguration
Diffstat (limited to 'lib/configuration')
-rw-r--r-- | lib/configuration/configuration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp index 6686520..6e479f4 100644 --- a/lib/configuration/configuration.cpp +++ b/lib/configuration/configuration.cpp @@ -93,7 +93,7 @@ inline auto parse(const std::string &line, std::string §ion) extern "C" int LLVMFuzzerTestOneInput(const char *Data, long long Size) { std::string section; - parse(std::string(Data, Size), section); + parse(std::string(Data, static_cast<unsigned long>(Size)), section); return 0; } #endif @@ -146,7 +146,7 @@ Configuration *Configuration::instance() return s_conf; } -std::ostream &operator<<(std::ostream &out, const Configuration &obj) +std::ostream &operator<<(std::ostream &out, const Configuration &obj param_typestate(unconsumed)) { if(obj.use_global) { out << *s_conf; |