Skip to content

Commit

Permalink
Update binding to the same C counterpart.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Jul 18, 2024
1 parent 75d026a commit 65334e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sqlite/SQLiteValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extension Int32: SQLiteValue {
}
extension UInt32: SQLiteValue {
public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
sqlite3_bind_int(query, parameterId, Int32(self))
sqlite3_bind_int(query, parameterId, Int32(bitPattern: self))
}
}
extension Int64: SQLiteValue {
Expand All @@ -45,7 +45,7 @@ extension Int64: SQLiteValue {
}
extension UInt64: SQLiteValue {
public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
sqlite3_bind_int64(query, parameterId, Int64(self))
sqlite3_bind_int64(query, parameterId, Int64(bitPattern: self))
}
}
extension Float: SQLiteValue {
Expand Down

0 comments on commit 65334e3

Please sign in to comment.