diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-11-11 11:50:09 +0100 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-11-14 01:04:04 +0100 |
commit | ecf398614bac4ef197f0da4cf160aba32efe048c (patch) | |
tree | 8e65dc3f97217cd57ce9ff5dd8014d08e3a7f4af | |
parent | ebe086222f89521de5390bc204ed31976f4b97f4 (diff) | |
download | sparse-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: |