Skip to content

Commit 3e99b67

Browse files
authored
Merge pull request #6909 from tautschnig/bugfixes/config-arch
Fix architecture typo x64_64 -> x86_64
2 parents 4a4755d + d2eca24 commit 3e99b67

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

regression/ansi-c/sizeof1/main.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,20 @@ STATIC_ASSERT(sizeof(void *)==sizeof(size_t));
1212

1313
#ifdef _WIN32
1414

15-
#ifdef _WIN64
15+
# ifdef _WIN64
1616

1717
STATIC_ASSERT(sizeof(void *)==8);
1818
STATIC_ASSERT(sizeof(int)==4);
1919
STATIC_ASSERT(sizeof(long int)==4);
2020
STATIC_ASSERT(sizeof(long long int)==8);
2121
STATIC_ASSERT(sizeof(wchar_t)==2);
22+
# ifdef __MINGW64__
23+
STATIC_ASSERT(sizeof(long double) == 16);
24+
# else
2225
STATIC_ASSERT(sizeof(long double)==8);
26+
# endif
2327

24-
#else
28+
# else
2529

2630
STATIC_ASSERT(sizeof(void *)==4);
2731
STATIC_ASSERT(sizeof(int)==4);
@@ -30,7 +34,7 @@ STATIC_ASSERT(sizeof(long long int)==8);
3034
STATIC_ASSERT(sizeof(wchar_t)==2);
3135
STATIC_ASSERT(sizeof(long double)==8);
3236

33-
#endif
37+
# endif
3438

3539
#else
3640

src/util/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ bool configt::set(const cmdlinet &cmdline)
993993

994994
// long double is the same as double in Visual Studio,
995995
// but it's 16 bytes with GCC with the 64-bit target.
996-
if(arch=="x64_64" && cmdline.isset("gcc"))
996+
if(arch == "x86_64" && cmdline.isset("gcc"))
997997
ansi_c.long_double_width=16*8;
998998
else
999999
ansi_c.long_double_width=8*8;

0 commit comments

Comments
 (0)