ht: fix build

This commit is contained in:
Enno Boland 2018-01-10 18:50:45 +01:00
parent e238b94b99
commit e7197207f1
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- htapp.cc.orig 2018-01-10 18:38:43.062092621 +0100
+++ htapp.cc 2018-01-10 18:39:04.732035497 +0100
@@ -3023,7 +3023,7 @@ static uint isqr(uint u)
{
uint a = 2;
uint b = u/a;
- while (abs(a - b) > 1) {
+ while (abs((long int)a - (long int)b) > 1) {
a = (a+b)/2;
b = u/a;
}

View File

@ -1,7 +1,7 @@
# Template file for 'ht'
pkgname=ht
version=2.1.0
revision=1
revision=2
build_style=gnu-configure
makedepends="ncurses-devel lzo-devel"
short_desc="File editor/viewer/analyzer for executables"