Sat May 30 20:48:59 2020 UTC ()
Don't compute abs of unsigned.


(joerg)
diff -r1.10 -r1.11 pkgsrc/devel/ht/distinfo
diff -r0 -r1.1 pkgsrc/devel/ht/patches/patch-htapp.cc

cvs diff -r1.10 -r1.11 pkgsrc/devel/ht/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/ht/distinfo 2015/11/03 03:27:35 1.10
+++ pkgsrc/devel/ht/distinfo 2020/05/30 20:48:59 1.11
@@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
1$NetBSD: distinfo,v 1.10 2015/11/03 03:27:35 agc Exp $ 1$NetBSD: distinfo,v 1.11 2020/05/30 20:48:59 joerg Exp $
2 2
3SHA1 (ht-2.1.0.tar.bz2) = d9d39fd3055fd4b4abd5a718bde8e0249cd61e9a 3SHA1 (ht-2.1.0.tar.bz2) = d9d39fd3055fd4b4abd5a718bde8e0249cd61e9a
4RMD160 (ht-2.1.0.tar.bz2) = 665e20a70a4735acf2102521b49074f94a28fba6 4RMD160 (ht-2.1.0.tar.bz2) = 665e20a70a4735acf2102521b49074f94a28fba6
5SHA512 (ht-2.1.0.tar.bz2) = 6b5fc5fcbc63b9b7c85721158e044e4578ebfdc38618c760c0e6de06a276bccd3a960ab8bed172de788934515ad94d86349c4abd3228da66b1601deaaa2ce410 5SHA512 (ht-2.1.0.tar.bz2) = 6b5fc5fcbc63b9b7c85721158e044e4578ebfdc38618c760c0e6de06a276bccd3a960ab8bed172de788934515ad94d86349c4abd3228da66b1601deaaa2ce410
6Size (ht-2.1.0.tar.bz2) = 884139 bytes 6Size (ht-2.1.0.tar.bz2) = 884139 bytes
 7SHA1 (patch-htapp.cc) = 62d14f6bd39eb1f49773d2868e43000c8aaf9d21

File Added: pkgsrc/devel/ht/patches/patch-htapp.cc
$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;
         }