1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

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)
This commit is contained in:
unknown
2006-12-19 20:17:33 -07:00
parent 6417ddd6d3
commit 29aae17044
3 changed files with 4 additions and 3 deletions

View File

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