termux-packages/packages/ht/htapp.cc.patch

13 lines
315 B
Diff

diff -u -r ../ht-2.1.0/htapp.cc ./htapp.cc
--- ../ht-2.1.0/htapp.cc 2014-09-14 17:55:26.000000000 +0200
+++ ./htapp.cc 2017-07-13 11:21:19.614513024 +0200
@@ -3023,7 +3023,7 @@
{
uint a = 2;
uint b = u/a;
- while (abs(a - b) > 1) {
+ while (abs(a - (long long) b) > 1) {
a = (a+b)/2;
b = u/a;
}