From 6d5997b05ee30f1da8cb076c146a0cb162fd6500 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 5 Apr 2006 11:20:12 +0200 Subject: 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(-) (limited to 'sql/udf_example.cc') 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; } -- cgit v1.2.1