From eda6a4941ad8c0003d13f23a0ef33c1769dfdab1 Mon Sep 17 00:00:00 2001 From: Salvatore Filippone Date: Tue, 23 Feb 2010 12:49:56 +0000 Subject: [PATCH] Fixed compilation issue for diffadd. --- base/modules/cutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }