Use signed ints https://github.com/sebastianbiallas/ht/commit/3b62f2f7e49e024ec9d3c5ffc8ff9cd87a107af6 Fixes ambiguous abs https://github.com/sebastianbiallas/ht/issues/19 --- htapp.cc.orig +++ htapp.cc @@ -3021,8 +3021,8 @@ void do_modal_resize() static uint isqr(uint u) { - uint a = 2; - uint b = u/a; + int a = 2; + int b = u/a; while (abs(a - b) > 1) { a = (a+b)/2; b = u/a;