[libgsf] Compilation: portability issue.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsf] Compilation: portability issue.
- Date: Fri, 15 May 2015 14:58:53 +0000 (UTC)
commit 836a9d7652863b0f2300fe2b3402dfcd1b79210e
Author: Morten Welinder <terra gnome org>
Date: Fri May 15 10:57:33 2015 -0400
Compilation: portability issue.
ChangeLog | 4 ++++
gsf/gsf-outfile-zip.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c5bc0df..ef8d9dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-05-15 Morten Welinder <terra gnome org>
+
+ * gsf/gsf-outfile-zip.c (zip_dirent_write): Fix portability issue.
+
2015-05-10 Morten Welinder <terra gnome org>
* gsf/gsf-open-pkg-utils.c (open_pkg_rel_begin): Be more careful
diff --git a/gsf/gsf-outfile-zip.c b/gsf/gsf-outfile-zip.c
index f7fb6f2..519b7a3 100644
--- a/gsf/gsf-outfile-zip.c
+++ b/gsf/gsf-outfile-zip.c
@@ -256,7 +256,7 @@ zip_dirent_write (GsfOutfileZip *zip, const GsfZipDirent *dirent)
GSF_LE_SET_GUINT16 (buf + ZIP_DIRENT_DISKSTART, 0);
GSF_LE_SET_GUINT16 (buf + ZIP_DIRENT_FILE_TYPE, 0);
/* Hardcode file mode 644 */
- GSF_LE_SET_GUINT32 (buf + ZIP_DIRENT_FILE_MODE, 0100644 << 16);
+ GSF_LE_SET_GUINT32 (buf + ZIP_DIRENT_FILE_MODE, 0100644u << 16);
GSF_LE_SET_GUINT32 (buf + ZIP_DIRENT_OFFSET,
offset_in_zip64 ? G_MAXUINT32 : dirent->offset);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]