(Attempt to) fix build on 9.1/i386.

Submitted by:	beefy1 via pkg-fallout
This commit is contained in:
Juergen Lock 2015-01-01 12:38:18 +00:00
parent 152df2bd5a
commit ecdc643f06
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375917

View file

@ -0,0 +1,12 @@
--- a/disas/libvixl/a64/disasm-a64.cc
+++ b/disas/libvixl/a64/disasm-a64.cc
@@ -1337,7 +1337,8 @@ void Disassembler::AppendPCRelativeOffse
int64_t offset) {
USE(instr);
char sign = (offset < 0) ? '-' : '+';
- AppendToOutput("#%c0x%" PRIx64, sign, std::abs(offset));
+ // AppendToOutput("#%c0x%" PRIx64, sign, std::abs(offset));
+ AppendToOutput("#%c0x%" PRIx64, sign, offset < 0 ? -offset : offset);
}