diff options
author | Matteo Bernardini | 2019-02-17 19:00:23 +0100 |
---|---|---|
committer | Matteo Bernardini | 2019-02-17 19:00:23 +0100 |
commit | 728d1f98285ca36c6f63c48b4a9f3125ef7396ff (patch) | |
tree | b9f9d2618fd06436d8eb61488edebac987197d5e /development/hte/hteditor-2.1.0-gcc-7.patch | |
parent | 77c0f4770537aea300fccd3189b723bfada95f22 (diff) | |
download | slackbuilds-d3a54bdd6cf5c967bb7a0a5a72dbf487bad56b2a.tar.gz |
20190217.1 global branch merge.current-20190217.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/hte/hteditor-2.1.0-gcc-7.patch')
-rw-r--r-- | development/hte/hteditor-2.1.0-gcc-7.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/development/hte/hteditor-2.1.0-gcc-7.patch b/development/hte/hteditor-2.1.0-gcc-7.patch new file mode 100644 index 0000000000..ebcc3c0aa4 --- /dev/null +++ b/development/hte/hteditor-2.1.0-gcc-7.patch @@ -0,0 +1,32 @@ +https://bugs.gentoo.org/show_bug.cgi?id=620732 + +Fixes build failure on gcc-7: + + htapp.cc: In function 'uint isqr(uint)': + htapp.cc:3026:18: error: call of overloaded 'abs(uint)' is ambiguous + while (abs(a - b) > 1) { + ^ + +Picked upstream patch that fixes it: + +commit 3b62f2f7e49e024ec9d3c5ffc8ff9cd87a107af6 +Author: Sebastian Biallas <sb@biallas.net> +Date: Sun Nov 13 15:25:26 2016 +0100 + + use unsigned variables + +diff --git a/htapp.cc b/htapp.cc +index 53d8725..03236e2 100644 +--- a/htapp.cc ++++ b/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; |