From ce4a01170f31f82ebfc7cd3d4c3eced4df36b666 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Mon, 29 Mar 2010 23:46:25 +0000 Subject: [PATCH] DBD::SQLite: (hopefully) silenced warnings --- dbdimp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbdimp.c b/dbdimp.c index a3c47b6..c887aff 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -512,7 +512,7 @@ sqlite_st_execute(SV *sth, imp_sth_t *imp_sth) SV *sql_type_sv = av_shift(imp_sth->params); int sql_type = SvIV(sql_type_sv); - sqlite_trace(sth, imp_sth, 4, form("params left in 0x%p: %d", imp_sth->params, 1+av_len(imp_sth->params))); + sqlite_trace(sth, imp_sth, 4, form("params left in 0x%p: %ld", imp_sth->params, 1+av_len(imp_sth->params))); sqlite_trace(sth, imp_sth, 4, form("bind %d type %d as %s", i, sql_type, SvPV_nolen_undef_ok(value))); if (!SvOK(value)) { @@ -1492,7 +1492,7 @@ sqlite_db_collation_needed(pTHX_ SV *dbh, SV *callback) /* Register the func within sqlite3 */ (void) sqlite3_collation_needed( imp_dbh->db, - (void*) SvOK(callback) ? dbh : NULL, + (void*) (SvOK(callback) ? dbh : NULL), sqlite_db_collation_needed_dispatcher ); }