diff options
author | Brad King <brad.king@kitware.com> | 2015-03-31 20:28:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-31 20:28:28 (GMT) |
commit | e86f44b72616ebce43dcd62d170f7ca90ff31fdf (patch) | |
tree | 4f9c074cf3b5a39c72f2cce627584f4e93a221d7 /Source | |
parent | 00214357ba6166d829da68a65c0d50a61c663bd5 (diff) | |
download | CMake-e86f44b72616ebce43dcd62d170f7ca90ff31fdf.zip CMake-e86f44b72616ebce43dcd62d170f7ca90ff31fdf.tar.gz CMake-e86f44b72616ebce43dcd62d170f7ca90ff31fdf.tar.bz2 |
cmCPackDebGenerator: Cast file mode to proper type for %o formatter
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index 87764e1..fcf4122 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -805,12 +805,14 @@ static int put_arobj(CF *cfp, struct stat *sb) if (lname > sizeof(hdr->ar_name) || strchr(name, ' ')) (void)sprintf(ar_hb, HDR1, AR_EFMT1, (int)lname, (long int)sb->st_mtime, (unsigned)uid, (unsigned)gid, - sb->st_mode, (long long)sb->st_size + lname, ARFMAG); + (unsigned)sb->st_mode, (long long)sb->st_size + lname, + ARFMAG); else { lname = 0; (void)sprintf(ar_hb, HDR2, name, (long int)sb->st_mtime, (unsigned)uid, (unsigned)gid, - sb->st_mode, (long long)sb->st_size, ARFMAG); + (unsigned)sb->st_mode, (long long)sb->st_size, + ARFMAG); } off_t size = sb->st_size; |