summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2013-06-07 09:38:58 +0200
committerMatteo Beccati <mbeccati@php.net>2013-06-07 09:38:58 +0200
commit2c0f09540e18371387eb291906f19b8b94e1ca5a (patch)
treeb9d7ea3e1bf623a730b41ddb8b3df42abfbb32ee
parenta649f42b20b60bbac545f79e2112c99b663897d1 (diff)
downloadphp-git-2c0f09540e18371387eb291906f19b8b94e1ca5a.tar.gz
Fixed signedness warning
-rw-r--r--ext/pdo_pgsql/pgsql_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c
index 03cc5a0f99..80abb4b7c8 100644
--- a/ext/pdo_pgsql/pgsql_driver.c
+++ b/ext/pdo_pgsql/pgsql_driver.c
@@ -320,7 +320,7 @@ static int pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquote
case PDO_PARAM_LOB:
/* escapedlen returned by PQescapeBytea() accounts for trailing 0 */
#ifdef HAVE_PQESCAPE_BYTEA_CONN
- escaped = PQescapeByteaConn(H->server, unquoted, unquotedlen, &tmp_len);
+ escaped = PQescapeByteaConn(H->server, (unsigned char *)unquoted, unquotedlen, &tmp_len);
#else
escaped = PQescapeBytea(unquoted, unquotedlen, &tmp_len);
#endif