1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

use "unsigned long" type just as in function declaration and add surrounding parentheses.

This commit is contained in:
msvensson@neptunus.(none)
2006-04-05 11:20:12 +02:00
parent 8ed7d70e4d
commit f1a2c7b14f

View File

@@ -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;
}