com php-src: fix int to void * cast: ext/odbc/php_odbc.c
| From: | Anatol Belski | Date: | Tue, 03 Feb 2015 16:52:18 +0000 |
| Subject: | com php-src: fix int to void * cast: ext/odbc/php_odbc.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84594@lists.php.net to get a copy of this message | ||
Commit: 73a6e7e24a7f08d2a60f30ece97cff3a22a8b13a
Author: Anatol Belski <ab@php.net> Tue, 3 Feb 2015 17:39:20 +0100
Parents: d920cc427ba568bd75bb21ffd43b804b9efb8c09
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=73a6e7e24a7f08d2a60f30ece97cff3a22a8b13a
Log:
fix int to void * cast
Changed paths:
M ext/odbc/php_odbc.c
Diff:
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index cd49643..692128c 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -1358,7 +1358,7 @@ PHP_FUNCTION(odbc_execute)
rc = SQLBindParameter(result->stmt, (SQLUSMALLINT)i, SQL_PARAM_INPUT,
ctype, sqltype, precision, scale,
- (void *)params[i-1].fp, 0,
+ (void *)(intptr_t)params[i-1].fp, 0,
¶ms[i-1].vallen);
} else {
#ifdef HAVE_DBMAKER