summaryrefslogtreecommitdiff
path: root/sql/udf_example.c
diff options
context:
space:
mode:
authorunknown <tsmith/tim@siva.hindu.god>2006-12-19 20:17:33 -0700
committerunknown <tsmith/tim@siva.hindu.god>2006-12-19 20:17:33 -0700
commit29aae170443d7bbc6dff1b6dd868ed7ea719eec3 (patch)
tree837323f451b65b91251cf0fe7045ef1857d3a123 /sql/udf_example.c
parent6417ddd6d39161ae59d1a4a4aac14d6b4d6eab35 (diff)
downloadmariadb-git-29aae170443d7bbc6dff1b6dd868ed7ea719eec3.tar.gz
Remove warnings by casting
cmd-line-utils/readline/histfile.c: Remove warning (compare signed & unsigned) sql/udf_example.c: Remove warning (cast integer to pointer of different size) strings/decimal.c: Remove warning (%lx format, double arg)
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;
}