From 6c7222e071ffe7d20c138faac0da1d708e0a7779 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 29 Aug 2021 15:12:57 +0100 Subject: Add -Wold-style-cast --- lib/row.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/row.cpp') diff --git a/lib/row.cpp b/lib/row.cpp index ba8045d..54e2728 100644 --- a/lib/row.cpp +++ b/lib/row.cpp @@ -21,7 +21,8 @@ namespace MyGrate { auto colIter {columnFlags.begin()}; for (auto c {0U}; c < tm.column_count; c++) { if (*colIter) { - const enum_field_types type {(enum_field_types)(unsigned char)tm.column_types.str[c]}; + const enum_field_types type { + static_cast(static_cast(tm.column_types.str[c]))}; const auto null {*nullIter}; if (null) { switch (type) { -- cgit v1.2.3