From a8420ae8e2792f305c12840485c74899000ce4e4 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 3 Oct 2020 18:39:10 +0300 Subject: Fix deprecated warning in meson.build Fix warnings in libconfiguration --- lib/configuration/configuration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/configuration') 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(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; -- cgit v1.2.1