Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ht Don't compute abs of unsigned.
details: https://anonhg.NetBSD.org/pkgsrc/rev/fd90dc4fc93c
branches: trunk
changeset: 433098:fd90dc4fc93c
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat May 30 20:48:59 2020 +0000
description:
Don't compute abs of unsigned.
diffstat:
devel/ht/distinfo | 3 ++-
devel/ht/patches/patch-htapp.cc | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r 4b91eacd414f -r fd90dc4fc93c devel/ht/distinfo
--- a/devel/ht/distinfo Sat May 30 20:48:13 2020 +0000
+++ b/devel/ht/distinfo Sat May 30 20:48:59 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.10 2015/11/03 03:27:35 agc Exp $
+$NetBSD: distinfo,v 1.11 2020/05/30 20:48:59 joerg Exp $
SHA1 (ht-2.1.0.tar.bz2) = d9d39fd3055fd4b4abd5a718bde8e0249cd61e9a
RMD160 (ht-2.1.0.tar.bz2) = 665e20a70a4735acf2102521b49074f94a28fba6
SHA512 (ht-2.1.0.tar.bz2) = 6b5fc5fcbc63b9b7c85721158e044e4578ebfdc38618c760c0e6de06a276bccd3a960ab8bed172de788934515ad94d86349c4abd3228da66b1601deaaa2ce410
Size (ht-2.1.0.tar.bz2) = 884139 bytes
+SHA1 (patch-htapp.cc) = 62d14f6bd39eb1f49773d2868e43000c8aaf9d21
diff -r 4b91eacd414f -r fd90dc4fc93c devel/ht/patches/patch-htapp.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ht/patches/patch-htapp.cc Sat May 30 20:48:59 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-htapp.cc,v 1.1 2020/05/30 20:48:59 joerg Exp $
+
+--- htapp.cc.orig 2020-05-27 23:39:17.675968433 +0000
++++ htapp.cc
+@@ -3023,7 +3023,7 @@ static uint isqr(uint u)
+ {
+ uint a = 2;
+ uint b = u/a;
+- while (abs(a - b) > 1) {
++ while (abs((int)a - (int)b) > 1) {
+ a = (a+b)/2;
+ b = u/a;
+ }
Home |
Main Index |
Thread Index |
Old Index