diff options
author | tsmith/tim@siva.hindu.god <> | 2006-12-19 20:17:33 -0700 |
---|---|---|
committer | tsmith/tim@siva.hindu.god <> | 2006-12-19 20:17:33 -0700 |
commit | 7c82a06dcf0dbf4cff2e2001ae03cdb574e6105e (patch) | |
tree | 837323f451b65b91251cf0fe7045ef1857d3a123 /cmd-line-utils | |
parent | 84a0873d05a68dca6a8ffb76dd6eb0cdfbc26c79 (diff) | |
download | mariadb-git-7c82a06dcf0dbf4cff2e2001ae03cdb574e6105e.tar.gz |
Remove warnings by casting
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) |