From 479cb580305d027dbf2acbe26748e19d5ae2a360 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Mon, 24 May 2010 13:10:16 +0000 Subject: [PATCH] killed warnings --- SQLite.xs | 2 +- dbdimp.c | 4 ++-- dbdimp.h | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SQLite.xs b/SQLite.xs index c471313..91b0415 100644 --- a/SQLite.xs +++ b/SQLite.xs @@ -19,7 +19,7 @@ last_insert_rowid(dbh) CODE: { D_imp_dbh(dbh); - RETVAL = sqlite3_last_insert_rowid(imp_dbh->db); + RETVAL = (IV)sqlite3_last_insert_rowid(imp_dbh->db); } OUTPUT: RETVAL diff --git a/dbdimp.c b/dbdimp.c index 64e8ed6..5e4434f 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -415,7 +415,7 @@ sqlite_db_last_insert_id(SV *dbh, imp_dbh_t *imp_dbh, SV *catalog, SV *schema, S croak_if_db_is_null(); - return newSViv(sqlite3_last_insert_rowid(imp_dbh->db)); + return newSViv((IV)sqlite3_last_insert_rowid(imp_dbh->db)); } int @@ -1636,7 +1636,7 @@ sqlite_db_update_dispatcher( void *callback, int op, XPUSHs( sv_2mortal( newSViv( op ) ) ); XPUSHs( sv_2mortal( newSVpv( database, 0 ) ) ); XPUSHs( sv_2mortal( newSVpv( table, 0 ) ) ); - XPUSHs( sv_2mortal( newSViv( rowid ) ) ); + XPUSHs( sv_2mortal( newSViv( (IV)rowid ) ) ); PUTBACK; call_sv( callback, G_VOID ); diff --git a/dbdimp.h b/dbdimp.h index 1a5e5f7..9069d63 100644 --- a/dbdimp.h +++ b/dbdimp.h @@ -94,6 +94,7 @@ SV* sqlite_db_commit_hook( pTHX_ SV *dbh, SV *hook ); SV* sqlite_db_rollback_hook( pTHX_ SV *dbh, SV *hook ); SV* sqlite_db_update_hook( pTHX_ SV *dbh, SV *hook ); int sqlite_db_set_authorizer( pTHX_ SV *dbh, SV *authorizer ); +AV* sqlite_compile_options(); #ifdef SvUTF8_on