summaryrefslogtreecommitdiff
path: root/Zend/zend_sort.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-01-15 11:01:18 +0100
committerAnatol Belski <ab@php.net>2015-01-15 11:18:38 +0100
commitcdfafd3f3859a045ac22449932c5bd3eb0c03a6c (patch)
tree752cd44da89a6292adc4db16a21e6fa85202f4e1 /Zend/zend_sort.c
parent11f615b3118f34dd8a118261d03c386d9dc0bbfd (diff)
downloadphp-git-cdfafd3f3859a045ac22449932c5bd3eb0c03a6c.tar.gz
fix "unknown void * size" err
Diffstat (limited to 'Zend/zend_sort.c')
-rw-r--r--Zend/zend_sort.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zend/zend_sort.c b/Zend/zend_sort.c
index f9f9682570..22d0a163e5 100644
--- a/Zend/zend_sort.c
+++ b/Zend/zend_sort.c
@@ -157,16 +157,16 @@ ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_fun
case 1:
break;
case 2:
- zend_sort_2(base, base + siz, cmp, swp);
+ zend_sort_2(base, (char *)base + siz, cmp, swp);
break;
case 3:
- zend_sort_3(base, base + siz, base + siz + siz, cmp, swp);
+ zend_sort_3(base, (char *)base + siz, (char *)base + siz + siz, cmp, swp);
break;
case 4:
- zend_sort_4(base, base + siz, base + siz + siz, base + siz + siz + siz, cmp, swp);
+ zend_sort_4(base, (char *)base + siz, (char *)base + siz + siz, (char *)base + siz + siz + siz, cmp, swp);
break;
case 5:
- zend_sort_5(base, base + siz, base + siz + siz, base + siz + siz + siz, base + (siz * 4), cmp, swp);
+ zend_sort_5(base, (char *)base + siz, (char *)base + siz + siz, (char *)base + siz + siz + siz, (char *)base + (siz * 4), cmp, swp);
break;
default:
{