diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2018-02-08 19:49:13 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2018-02-08 19:49:13 +0100 |
commit | ca1db966904a17097f4ffa2a73bc6ca58b4dd145 (patch) | |
tree | 45a0217fa7a59dd069ec9c35743870ff50dad33c | |
parent | a6c20b5ee46c39cf5c9e86bc6cd938ba56909dff (diff) | |
download | 0xFFFF-ca1db966904a17097f4ffa2a73bc6ca58b4dd145.tar.bz2 |
disk: Fix compile warning: comparison between signed and unsigned integer expressions
-rw-r--r-- | src/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -221,7 +221,7 @@ int disk_dump_dev(int fd, const char * file) { #else blksize = lseek(fd, 0, SEEK_END); - if ( blksize == (off_t)-1 ) { + if ( (off_t)blksize == (off_t)-1 ) { ERROR_INFO("Cannot get size of block device"); return -1; } |