diff options
author | tsmith/tim@siva.hindu.god <> | 2006-12-19 20:17:33 -0700 |
---|---|---|
committer | tsmith/tim@siva.hindu.god <> | 2006-12-19 20:17:33 -0700 |
commit | 7c82a06dcf0dbf4cff2e2001ae03cdb574e6105e (patch) | |
tree | 837323f451b65b91251cf0fe7045ef1857d3a123 /sql/udf_example.c | |
parent | 84a0873d05a68dca6a8ffb76dd6eb0cdfbc26c79 (diff) | |
download | mariadb-git-7c82a06dcf0dbf4cff2e2001ae03cdb574e6105e.tar.gz |
Remove warnings by casting
Diffstat (limited to 'sql/udf_example.c')
-rw-r--r-- | sql/udf_example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/udf_example.c b/sql/udf_example.c index bbab47e253d..f938cc9c1d3 100644 --- a/sql/udf_example.c +++ b/sql/udf_example.c @@ -1087,7 +1087,7 @@ my_bool is_const_init(UDF_INIT *initid, UDF_ARGS *args, char *message) strmov(message, "IS_CONST accepts only one argument"); return 1; } - initid->ptr= (char*)((args->args[0] != NULL) ? 1 : 0); + initid->ptr= (char*)((args->args[0] != NULL) ? 1UL : 0); return 0; } |