diff options
author | unknown <tsmith/tim@siva.hindu.god> | 2006-12-19 20:17:33 -0700 |
---|---|---|
committer | unknown <tsmith/tim@siva.hindu.god> | 2006-12-19 20:17:33 -0700 |
commit | 29aae170443d7bbc6dff1b6dd868ed7ea719eec3 (patch) | |
tree | 837323f451b65b91251cf0fe7045ef1857d3a123 /cmd-line-utils | |
parent | 6417ddd6d39161ae59d1a4a4aac14d6b4d6eab35 (diff) | |
download | mariadb-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.c | 3 |
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) |