diff --git a/hdr/sqlite_modern_cpp/type_wrapper.h b/hdr/sqlite_modern_cpp/type_wrapper.h index 7b12a36b..757fd93e 100644 --- a/hdr/sqlite_modern_cpp/type_wrapper.h +++ b/hdr/sqlite_modern_cpp/type_wrapper.h @@ -130,11 +130,11 @@ namespace sqlite { } inline float get_col_from_db(sqlite3_stmt* stmt, int inx, result_type) { return sqlite3_column_type(stmt, inx) == SQLITE_NULL ? 0 : - sqlite3_column_double(stmt, inx); + static_cast(sqlite3_column_double(stmt, inx)); } inline float get_val_from_db(sqlite3_value *value, result_type) { return sqlite3_value_type(value) == SQLITE_NULL ? 0 : - sqlite3_value_double(value); + static_cast(sqlite3_value_double(value)); } // double