Skip to content

Commit e317be6

Browse files
committed
Avoid infinte loop
1 parent 20c98a2 commit e317be6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hdr/sqlite_modern_cpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ namespace sqlite {
854854
}
855855
template<class Integral, class = std::enable_if<std::is_integral<Integral>::type>>
856856
inline void store_result_in_db(sqlite3_context* db, const Integral& val) {
857-
store_result_in_db(db, val);
857+
store_result_in_db(db, static_cast<sqlite3_int64>(val));
858858
}
859859
template<class Integral, class = typename std::enable_if<std::is_integral<Integral>::value>::type>
860860
inline void get_col_from_db(database_binder& db, int inx, Integral& val) {

0 commit comments

Comments
 (0)