summaryrefslogtreecommitdiff
path: root/cmd-line-utils
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 /cmd-line-utils
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 'cmd-line-utils')
-rw-r--r--cmd-line-utils/readline/histfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-line-utils/readline/histfile.c b/cmd-line-utils/readline/histfile.c
index a7d6a68098e..f1822b105a4 100644
--- a/cmd-line-utils/readline/histfile.c
+++ b/cmd-line-utils/readline/histfile.c
@@ -334,7 +334,8 @@ history_truncate_file (fname, lines)
file_size = (size_t)finfo.st_size;
/* check for overflow on very large files */
- if (file_size != finfo.st_size || file_size + 1 < file_size)
+ if ((long long) file_size != (long long) finfo.st_size ||
+ file_size + 1 < file_size)
{
close (file);
#if defined (EFBIG)