mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Fix build on CURRENT.
This is a bit defensive, static_cast<int> might've cut it as well. Approved by: mentors (implicit)
This commit is contained in:
parent
56ec32c19d
commit
e0c81583d3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=416855
@ -1,6 +1,16 @@
|
||||
--- backend/src/backend/gen_insn_selection.cpp.orig 2015-08-26 11:57:48.961363000 +0200
|
||||
+++ backend/src/backend/gen_insn_selection.cpp 2015-08-26 11:58:15.326657000 +0200
|
||||
@@ -1752,11 +1752,11 @@ namespace gbe
|
||||
Error: No word lists can be found for the language "en_US".
|
||||
--- backend/src/backend/gen_insn_selection.cpp.orig 2015-12-18 07:34:19.000000000 +0000
|
||||
+++ backend/src/backend/gen_insn_selection.cpp 2016-06-13 17:37:52.540024000 +0000
|
||||
@@ -1153,7 +1153,7 @@
|
||||
SelectionInstruction *insn = this->appendInsn(SEL_OP_JMPI, 0, 1);
|
||||
insn->src(0) = src;
|
||||
insn->index = index.value();
|
||||
- insn->extra.longjmp = abs(index - origin) > 800;
|
||||
+ insn->extra.longjmp = index.value() > origin.value() ? (index - origin) > 800 : (origin - index) > 800;
|
||||
return insn->extra.longjmp ? 2 : 1;
|
||||
}
|
||||
|
||||
@@ -1752,11 +1752,11 @@
|
||||
|
||||
// Boiler plate to initialize the selection library at c++ pre-main
|
||||
static SelectionLibrary *selLib = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user