diff options
Diffstat (limited to 'lib/row.cpp')
-rw-r--r-- | lib/row.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<enum_field_types>(static_cast<unsigned char>(tm.column_types.str[c]))}; const auto null {*nullIter}; if (null) { switch (type) { |