summaryrefslogtreecommitdiff
path: root/libarchive/archive_entry_stat.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-02-19 04:48:38 +0900
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-02-19 08:13:38 +0900
commit7d2cbbc56c5db48705a23aa80d256fcd92d69e6f (patch)
tree0b55cd18ee3f08a0dac98f584f87d1447c64b319 /libarchive/archive_entry_stat.c
parent276ca2c12f64fb74d40df08ae5b8117b45cc8e18 (diff)
downloadlibarchive-7d2cbbc56c5db48705a23aa80d256fcd92d69e6f.tar.gz
On Visual Studio, Enable Warning 4244: 'conversion' conversion from 'type1'
to 'type2', possible lose of data.
Diffstat (limited to 'libarchive/archive_entry_stat.c')
-rw-r--r--libarchive/archive_entry_stat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libarchive/archive_entry_stat.c b/libarchive/archive_entry_stat.c
index 65ff1cf9..71a407b1 100644
--- a/libarchive/archive_entry_stat.c
+++ b/libarchive/archive_entry_stat.c
@@ -70,12 +70,12 @@ archive_entry_stat(struct archive_entry *entry)
st->st_ctime = archive_entry_ctime(entry);
st->st_mtime = archive_entry_mtime(entry);
st->st_dev = archive_entry_dev(entry);
- st->st_gid = archive_entry_gid(entry);
- st->st_uid = archive_entry_uid(entry);
- st->st_ino = archive_entry_ino64(entry);
+ st->st_gid = (gid_t)archive_entry_gid(entry);
+ st->st_uid = (uid_t)archive_entry_uid(entry);
+ st->st_ino = (ino_t)archive_entry_ino64(entry);
st->st_nlink = archive_entry_nlink(entry);
st->st_rdev = archive_entry_rdev(entry);
- st->st_size = archive_entry_size(entry);
+ st->st_size = (off_t)archive_entry_size(entry);
st->st_mode = archive_entry_mode(entry);
/*