summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2009-12-03 10:50:02 +0000
committerAndrey Hristov <andrey@php.net>2009-12-03 10:50:02 +0000
commit0f0f5f229b18e27d07e820cc3863d5dc9ea95fd0 (patch)
treeeee26d1267cb2a700faf2d43f394c5f501552397 /ext/mysqlnd/mysqlnd.c
parent2386938aeac997421198ca535b71493639898ac7 (diff)
downloadphp-git-0f0f5f229b18e27d07e820cc3863d5dc9ea95fd0.tar.gz
I svn-commit.2.tmp (Modified) Row 2 Col 28 11:45 Ctrl-K H for help
fix compilation on windows and with other compilers who don't like void* arithmetic
Diffstat (limited to 'ext/mysqlnd/mysqlnd.c')
-rw-r--r--ext/mysqlnd/mysqlnd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c
index 2b7d4062bc..6c01ca98d3 100644
--- a/ext/mysqlnd/mysqlnd.c
+++ b/ext/mysqlnd/mysqlnd.c
@@ -2393,9 +2393,7 @@ PHPAPI void ** _mysqlnd_plugin_get_plugin_connection_data(const MYSQLND * conn,
if (!conn || plugin_id >= mysqlnd_plugin_count()) {
return NULL;
}
-#if 0
- DBG_RETURN((void *)conn + sizeof(MYSQLND) + plugin_id * sizeof(void *));
-#endif
+ DBG_RETURN((void *)((char *)conn + sizeof(MYSQLND) + plugin_id * sizeof(void *)));
}
/* }}} */