com php-src: Fixed signedness warning: ext/pdo_pgsql/pgsql_ driver.c
| From: | Matteo Beccati | Date: | Fri, 07 Jun 2013 07:38:58 +0000 |
| Subject: | com php-src: Fixed signedness warning: ext/pdo_pgsql/pgsql_ driver.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72326@lists.php.net to get a copy of this message | ||
Commit: 2c0f09540e18371387eb291906f19b8b94e1ca5a
Author: Matteo Beccati <mbeccati@php.net> Fri, 7 Jun 2013 09:38:58 +0200
Parents: a649f42b20b60bbac545f79e2112c99b663897d1
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2c0f09540e18371387eb291906f19b8b94e1ca5a
Log:
Fixed signedness warning
Changed paths:
M ext/pdo_pgsql/pgsql_driver.c
Diff:
diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c
index 03cc5a0..80abb4b 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