diff options
author | joerg <joerg@pkgsrc.org> | 2020-05-30 20:48:59 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-05-30 20:48:59 +0000 |
commit | a67ecb23161406d791676f4233b38a0a14eef2fc (patch) | |
tree | 24a04293d2436302aff509943b0608c171cc8b35 /devel | |
parent | 4ede3def6412dc81e9213a08c97f4d6a55f29dd6 (diff) | |
download | pkgsrc-a67ecb23161406d791676f4233b38a0a14eef2fc.tar.gz |
Don't compute abs of unsigned.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/ht/distinfo | 3 | ||||
-rw-r--r-- | devel/ht/patches/patch-htapp.cc | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/devel/ht/distinfo b/devel/ht/distinfo index fc34c33b259..e99d9812aa5 100644 --- a/devel/ht/distinfo +++ b/devel/ht/distinfo @@ -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 --git a/devel/ht/patches/patch-htapp.cc b/devel/ht/patches/patch-htapp.cc new file mode 100644 index 00000000000..d90b8f9f96c --- /dev/null +++ b/devel/ht/patches/patch-htapp.cc @@ -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; + } |