summaryrefslogtreecommitdiff
path: root/sql/udf_example.c
diff options
context:
space:
mode:
authortsmith/tim@siva.hindu.god <>2006-12-19 20:17:33 -0700
committertsmith/tim@siva.hindu.god <>2006-12-19 20:17:33 -0700
commit7c82a06dcf0dbf4cff2e2001ae03cdb574e6105e (patch)
tree837323f451b65b91251cf0fe7045ef1857d3a123 /sql/udf_example.c
parent84a0873d05a68dca6a8ffb76dd6eb0cdfbc26c79 (diff)
downloadmariadb-git-7c82a06dcf0dbf4cff2e2001ae03cdb574e6105e.tar.gz
Remove warnings by casting
Diffstat (limited to 'sql/udf_example.c')
-rw-r--r--sql/udf_example.c2
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;
}