pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/converters/libqxp Use std::abs instead of just abs to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7114d072f9bd
branches:  trunk
changeset: 377017:7114d072f9bd
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Mon Mar 12 01:29:44 2018 +0000

description:
Use std::abs instead of just abs to fix clang build.

diffstat:

 converters/libqxp/distinfo                                 |   3 +-
 converters/libqxp/patches/patch-src_lib_QXPBlockParser.cpp |  15 ++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r fe102ed4e5b2 -r 7114d072f9bd converters/libqxp/distinfo
--- a/converters/libqxp/distinfo        Mon Mar 12 00:29:24 2018 +0000
+++ b/converters/libqxp/distinfo        Mon Mar 12 01:29:44 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2018/02/03 00:06:29 ryoon Exp $
+$NetBSD: distinfo,v 1.2 2018/03/12 01:29:44 dholland Exp $
 
 SHA1 (libqxp-0.0.1.tar.xz) = a5963474afcc8e7b0eb352754325c21e1a1f5e18
 RMD160 (libqxp-0.0.1.tar.xz) = c1d8d8ecd06445ec5ad9f8d18ec86e31d485879b
 SHA512 (libqxp-0.0.1.tar.xz) = a03a9ada658a92f4d985cad91d467b3916334c74dc26c1e4de89e3929e0135ca0e9c7e7e18ce616ef56a67863ec19c2638494400785849017f9a4776df07c607
 Size (libqxp-0.0.1.tar.xz) = 340184 bytes
+SHA1 (patch-src_lib_QXPBlockParser.cpp) = d2878371963ad704092080f291c6e3a4de100628
diff -r fe102ed4e5b2 -r 7114d072f9bd converters/libqxp/patches/patch-src_lib_QXPBlockParser.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/libqxp/patches/patch-src_lib_QXPBlockParser.cpp        Mon Mar 12 01:29:44 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_lib_QXPBlockParser.cpp,v 1.1 2018/03/12 01:29:44 dholland Exp $
+
+Fix clang build. (this doesn't fail on gcc; don't ask me why)
+
+--- src/lib/QXPBlockParser.cpp~        2017-12-31 15:11:37.000000000 +0000
++++ src/lib/QXPBlockParser.cpp
+@@ -108,7 +108,7 @@ std::shared_ptr<RVNGInputStream> QXPBloc
+ 
+       const int32_t nextVal = bigIdx ? readS32(m_input, be) : readS16(m_input, be);
+       isBig = nextVal < 0;
+-      next = abs(nextVal);
++      next = std::abs(nextVal);
+     }
+   }
+   catch (...)



Home | Main Index | Thread Index | Old Index