From 7b6ec5bf227313cdac8305a4e0f813d9584ae2a0 Mon Sep 17 00:00:00 2001 From: James Tucker Date: Tue, 6 Jan 2026 13:26:29 -0800 Subject: [PATCH] cgosqlite: cleanup two unnecessary unsafe casts The type is already compatible directly out of the API so there's no need for the cast dance in these calls. Updates #cleanup --- cgosqlite/cgosqlite.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgosqlite/cgosqlite.go b/cgosqlite/cgosqlite.go index 8fc1b07..e68c4bb 100644 --- a/cgosqlite/cgosqlite.go +++ b/cgosqlite/cgosqlite.go @@ -244,11 +244,11 @@ func (stmt *Stmt) StartTimer() { } func (stmt *Stmt) ColumnDatabaseName(col int) string { - return C.GoString((*C.char)(unsafe.Pointer(C.sqlite3_column_database_name(stmt.stmt, C.int(col))))) + return C.GoString(C.sqlite3_column_database_name(stmt.stmt, C.int(col))) } func (stmt *Stmt) ColumnTableName(col int) string { - return C.GoString((*C.char)(unsafe.Pointer(C.sqlite3_column_table_name(stmt.stmt, C.int(col))))) + return C.GoString(C.sqlite3_column_table_name(stmt.stmt, C.int(col))) } func (stmt *Stmt) Step(colType []sqliteh.ColumnType) (row bool, err error) {