diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 18:25:03 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 18:25:03 +0100 |
commit | fcf1619d1d13242ff316cf5232ef933cf58e04be (patch) | |
tree | b0cf5b55f8775efb54de872cd8b2c890e587419c /serialize/json-helper.cpp | |
parent | b84cfa301e2fb131275711c67a2e91e3cda65c4e (diff) |
fix warning
Diffstat (limited to 'serialize/json-helper.cpp')
-rw-r--r-- | serialize/json-helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize/json-helper.cpp b/serialize/json-helper.cpp index eda628de..c3f861a4 100644 --- a/serialize/json-helper.cpp +++ b/serialize/json-helper.cpp @@ -23,7 +23,7 @@ static T open_stream(StringView filename) (void)::strerror_s(buf, std::size(buf), errno); #endif }; - const char* mode_str = mode & std::ios_base::out ? "writing" : "reading"; + const char* mode_str = (mode & std::ios_base::out) == std::ios_base::out ? "writing" : "reading"; (void)get_error_string(errbuf); fm_error("can't open file '%s' for %s: %s", filename.data(), mode_str, errbuf); } |