From 7354dc67737fdeb105656f5cec055da627bb9c29 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Thu, 28 Sep 2017 10:38:02 +0000 Subject: MDEV-13384 - misc Windows warnings fixed --- sql/udf_example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/udf_example.c') diff --git a/sql/udf_example.c b/sql/udf_example.c index a48801d1c4a..c7e2f989829 100644 --- a/sql/udf_example.c +++ b/sql/udf_example.c @@ -1095,7 +1095,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) ? 1UL : 0); + initid->ptr= (char*)((args->args[0] != NULL) ? (size_t)1 : (size_t)0); return 0; } -- cgit v1.2.1