From 8e6a539d89bc44e47ec75f8cf5d47f824e35c869 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 15 Feb 2014 19:34:42 +0000 Subject: [PATCH] Fix crash in php example Declaration and definition of the add function were different --- Examples/php/cpointer/example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/php/cpointer/example.c b/Examples/php/cpointer/example.c index 3326dec3e..04dd08df0 100644 --- a/Examples/php/cpointer/example.c +++ b/Examples/php/cpointer/example.c @@ -1,6 +1,6 @@ /* File : example.c */ -void add(double *x, double *y, double *result) { +void add(int *x, int *y, int *result) { *result = *x + *y; }