pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/fbreader fbreader: avoid narrowing conversion war...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b13ce28f8085
branches:  trunk
changeset: 401034:b13ce28f8085
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Sep 09 13:31:53 2019 +0000

description:
fbreader: avoid narrowing conversion warning. Taken from gentoo.

Fixes PR pkg/54107: pkgsrc-2019Q1/misc/fbreader doesn't build with
newer compiler(s)

diffstat:

 misc/fbreader/distinfo                                              |   3 +-
 misc/fbreader/patches/patch-fbreader_src_formats_doc_OleStorage.cpp |  16 ++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 843edb710b46 -r b13ce28f8085 misc/fbreader/distinfo
--- a/misc/fbreader/distinfo    Mon Sep 09 13:26:14 2019 +0000
+++ b/misc/fbreader/distinfo    Mon Sep 09 13:31:53 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2016/12/03 09:06:37 maya Exp $
+$NetBSD: distinfo,v 1.13 2019/09/09 13:31:53 maya Exp $
 
 SHA1 (fbreader-sources-0.99.4.tgz) = 7e6f0acbac5d8111fcda14a576ae4fdc93eef292
 RMD160 (fbreader-sources-0.99.4.tgz) = 90825fcb6b026785dd3a7329899b54a02b08e4ed
@@ -10,6 +10,7 @@
 SHA1 (patch-fbreader_Makefile) = b34214a6a725527f312969c12f3c79fcda193233
 SHA1 (patch-fbreader_src_fbreader_FBReaderActions.cpp) = ac2d5937d3628abd6db2e4b2fe869d95262d2689
 SHA1 (patch-fbreader_src_fbreader_FBView.cpp) = f9018b813b92d31c67e13eb68d6e50c8a7637a5c
+SHA1 (patch-fbreader_src_formats_doc_OleStorage.cpp) = 643efdc81d73c71a679294bd5b5c01051ad63350
 SHA1 (patch-fbreader_src_formats_html_HtmlReader.cpp) = fe0ebe4dff97a11581a6d7b079f8f19f4e3be019
 SHA1 (patch-makefiles_qsubdir.mk) = a139410def61e793b193cb54716b9ffb339b5692
 SHA1 (patch-makefiles_subdir.mk) = b9c7d0339e86b9cd6010d4156f35233320a14436
diff -r 843edb710b46 -r b13ce28f8085 misc/fbreader/patches/patch-fbreader_src_formats_doc_OleStorage.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/fbreader/patches/patch-fbreader_src_formats_doc_OleStorage.cpp       Mon Sep 09 13:31:53 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-fbreader_src_formats_doc_OleStorage.cpp,v 1.1 2019/09/09 13:31:53 maya Exp $
+
+Fix narrowing conversion error
+
+--- fbreader/src/formats/doc/OleStorage.cpp.orig       2012-11-30 12:41:25.000000000 +0000
++++ fbreader/src/formats/doc/OleStorage.cpp
+@@ -59,7 +59,8 @@ bool OleStorage::init(shared_ptr<ZLInput
+               clear();
+               return false;
+       }
+-      static const char OLE_SIGN[] = {0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1, 0};
++      static const char OLE_SIGN[] = {(char)0xD0, (char)0xCF, (char)0x11,
++              (char)0xE0, (char)0xA1, (char)0xB1, (char)0x1A, (char)0xE1, 0};
+       if (std::strncmp(oleBuf, OLE_SIGN, 8) != 0) {
+               clear();
+               return false;



Home | Main Index | Thread Index | Old Index