diff options
author | Anatol Belski <ab@php.net> | 2015-07-24 21:30:53 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-07-24 21:51:29 +0200 |
commit | 5334d53499b2d7f2a3281f5fbc6b0963ae61aaad (patch) | |
tree | 7a8b163c216b0faeb0c7781967299a5fde3e72d4 /sapi/phpdbg/phpdbg.c | |
parent | 05496c7312c4bdfc799dcd080ff00e07d3a58480 (diff) | |
download | php-git-5334d53499b2d7f2a3281f5fbc6b0963ae61aaad.tar.gz |
avoid pointer truncation
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 0a84202509..5f65c9f068 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -1951,7 +1951,7 @@ phpdbg_out: /* hack to restore mm_heap->use_custom_heap in order to receive memory leak info */ if (use_mm_wrappers) { /* ASSUMING that mm_heap->use_custom_heap is the first element of the struct ... */ - *(int *) mm_heap = 0; + *(size_t *) mm_heap = 0; } zend_try { php_request_shutdown(NULL); |