aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-11-11 11:50:09 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-11-14 01:04:04 +0100
commitecf398614bac4ef197f0da4cf160aba32efe048c (patch)
tree8e65dc3f97217cd57ce9ff5dd8014d08e3a7f4af
parentebe086222f89521de5390bc204ed31976f4b97f4 (diff)
downloadsparse-ecf398614bac4ef197f0da4cf160aba32efe048c.tar.gz
arch: simplify i386/x86-64 specifics
The current test for setting wchar on i386 uses a conditional break and a fallthrough on the x86-64 case. This is not needed and can be simplified by reversing the order of the i386 & x86-64 cases. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--target.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target.c b/target.c
index 497ecdc5..acafbd92 100644
--- a/target.c
+++ b/target.c
@@ -79,11 +79,11 @@ void init_target(void)
}
switch (arch_mach) {
- case MACH_X86_64:
- if (arch_m64 == ARCH_LP64)
- break;
- /* fall through */
case MACH_I386:
+ wchar_ctype = &long_ctype;
+ /* fall through */
+ case MACH_X86_64:
+ break;
case MACH_M68K:
case MACH_SPARC32:
case MACH_PPC32: