浏览代码

Fixed pointer casting.

Brucey 2 年之前
父节点
当前提交
04d27c3e8d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      sqlite.mod/sqlitehelper.c

+ 2 - 2
sqlite.mod/sqlitehelper.c

@@ -40,9 +40,9 @@ void bmx_sqlite3_last_insert_rowid(sqlite3 * handle , BBInt64 * value) {
 
 
 int bmx_sqlite3_bind_text64(sqlite3_stmt * handle , int index, const char * value, BBInt64 size, int how) {
-	return sqlite3_bind_text64(handle, index, value, size, (int)how, SQLITE_UTF8);
+	return sqlite3_bind_text64(handle, index, value, size, (sqlite3_destructor_type)how, SQLITE_UTF8);
 }
 
 int bmx_sqlite3_bind_blob64(sqlite3_stmt * handle , int index, const void * value, BBInt64 size, int how) {
-	return sqlite3_bind_blob64(handle, index, value, size, (int)how);
+	return sqlite3_bind_blob64(handle, index, value, size, (sqlite3_destructor_type)how);
 }