diff options
author | grembo <grembo@FreeBSD.org> | 2016-06-14 02:54:13 +0800 |
---|---|---|
committer | grembo <grembo@FreeBSD.org> | 2016-06-14 02:54:13 +0800 |
commit | e22a114864aa197d6c3854c91f900629b0f2d4ac (patch) | |
tree | 3a7e49df7c21002ab896d9fac9599bf2d0b0dc8b /lang | |
parent | b337523de93b532a4c9a3b3d899c4ee950aa5f30 (diff) | |
download | freebsd-ports-gnome-e22a114864aa197d6c3854c91f900629b0f2d4ac.tar.gz freebsd-ports-gnome-e22a114864aa197d6c3854c91f900629b0f2d4ac.tar.zst freebsd-ports-gnome-e22a114864aa197d6c3854c91f900629b0f2d4ac.zip |
Fix build on CURRENT.
This is a bit defensive, static_cast<int> might've cut it as well.
Approved by: mentors (implicit)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp b/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp index 29c6bc30467e..b18188b286ac 100644 --- a/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp +++ b/lang/beignet/files/patch-backend_src_backend_gen-insn-selection.cpp @@ -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; |