Fix -Wsign-conversion -funsigned-char (fixes #1715)

This commit is contained in:
Benoit Blanchon
2022-02-28 10:00:12 +01:00
parent c1278797f2
commit ff06292d74
2 changed files with 3 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ inline VariantConstRef operator|(VariantConstRef preferedValue,
// Out of class definition to avoid #1560
inline bool VariantRef::set(char value) const {
return set<signed char>(value);
return set(static_cast<signed char>(value));
}
// TODO: move somewhere else