diff --git a/base/modules/cutil.c b/base/modules/cutil.c index a1e27b58..28718f5c 100644 --- a/base/modules/cutil.c +++ b/base/modules/cutil.c @@ -21,8 +21,8 @@ #define psi_c_diffadd PSI_C_DIFFADD #endif -void psi_c_diffadd(void *p1, void *p2, int *ret) +void psi_c_diffadd(char *p1, char *p2, int *ret) { - *ret = p2-p1; + *ret = (int)(p2-p1); return; }