Search
lxdream.org :: lxdream/src/xlat/disasm/i386-dis.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/xlat/disasm/i386-dis.c
changeset 1298:d0eb2307b847
prev1264:74ad81710528
author nkeynes
date Wed Feb 04 08:38:23 2015 +1000 (5 years ago)
permissions -rw-r--r--
last change Fix assorted compile warnings reported by Clang
file annotate diff log raw
1.1 --- a/src/xlat/disasm/i386-dis.c Tue Mar 06 12:19:08 2012 +1000
1.2 +++ b/src/xlat/disasm/i386-dis.c Wed Feb 04 08:38:23 2015 +1000
1.3 @@ -3019,32 +3019,32 @@
1.4 if (prefixes & PREFIX_CS)
1.5 {
1.6 used_prefixes |= PREFIX_CS;
1.7 - oappend ("%cs:" + intel_syntax);
1.8 + oappend ( &"%cs:"[(int)intel_syntax]);
1.9 }
1.10 if (prefixes & PREFIX_DS)
1.11 {
1.12 used_prefixes |= PREFIX_DS;
1.13 - oappend ("%ds:" + intel_syntax);
1.14 + oappend (&"%ds:"[(int)intel_syntax]);
1.15 }
1.16 if (prefixes & PREFIX_SS)
1.17 {
1.18 used_prefixes |= PREFIX_SS;
1.19 - oappend ("%ss:" + intel_syntax);
1.20 + oappend (&"%ss:"[(int)intel_syntax]);
1.21 }
1.22 if (prefixes & PREFIX_ES)
1.23 {
1.24 used_prefixes |= PREFIX_ES;
1.25 - oappend ("%es:" + intel_syntax);
1.26 + oappend (&"%es:"[(int)intel_syntax]);
1.27 }
1.28 if (prefixes & PREFIX_FS)
1.29 {
1.30 used_prefixes |= PREFIX_FS;
1.31 - oappend ("%fs:" + intel_syntax);
1.32 + oappend (&"%fs:"[(int)intel_syntax]);
1.33 }
1.34 if (prefixes & PREFIX_GS)
1.35 {
1.36 used_prefixes |= PREFIX_GS;
1.37 - oappend ("%gs:" + intel_syntax);
1.38 + oappend (&"%gs:"[(int)intel_syntax]);
1.39 }
1.40 }
1.41
1.42 @@ -3898,7 +3898,7 @@
1.43 oappend ("BYTE PTR ");
1.44 }
1.45
1.46 - oappend ("%es:" + intel_syntax);
1.47 + oappend (&"%es:"[(int)intel_syntax]);
1.48 ptr_reg (code, sizeflag);
1.49 }
1.50
.