diff options
Diffstat (limited to 'sql')
-rw-r--r-- | sql/udf_example.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |