From f1a2c7b14fc935516ee26712b2ed91f573535eea Mon Sep 17 00:00:00 2001 From: "msvensson@neptunus.(none)" <> Date: Wed, 5 Apr 2006 11:20:12 +0200 Subject: [PATCH] use "unsigned long" type just as in function declaration and add surrounding parentheses. --- sql/udf_example.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/udf_example.cc b/sql/udf_example.cc index 73e49aef178..f4f936f34ef 100644 --- a/sql/udf_example.cc +++ b/sql/udf_example.cc @@ -497,7 +497,7 @@ char *metaphon(UDF_INIT *initid, UDF_ARGS *args, char *result, } } } - *length= (ulong) (max(0, result - org_result - 1)); + *length= (unsigned long) (result - org_result); return org_result; }