depot/third_party/nixpkgs/pkgs/applications/editors/ht/gcc7.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

11 lines
275 B
Diff

--- ht-2.1.0.org/htapp.cc 2014-09-14 16:55:26.000000000 +0100
+++ ht-2.1.0/htapp.cc 2018-03-10 12:48:07.158533800 +0000
@@ -3023,7 +3023,7 @@
{
uint a = 2;
uint b = u/a;
- while (abs(a - b) > 1) {
+ while (abs((int)(a - b)) > 1) {
a = (a+b)/2;
b = u/a;
}