Skip to content

Commit

Permalink
Merge pull request #6909 from tautschnig/bugfixes/config-arch
Browse files Browse the repository at this point in the history
Fix architecture typo x64_64 -> x86_64
  • Loading branch information
tautschnig authored Jun 8, 2022
2 parents 4a4755d + d2eca24 commit 3e99b67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions regression/ansi-c/sizeof1/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,20 @@ STATIC_ASSERT(sizeof(void *)==sizeof(size_t));

#ifdef _WIN32

#ifdef _WIN64
# ifdef _WIN64

STATIC_ASSERT(sizeof(void *)==8);
STATIC_ASSERT(sizeof(int)==4);
STATIC_ASSERT(sizeof(long int)==4);
STATIC_ASSERT(sizeof(long long int)==8);
STATIC_ASSERT(sizeof(wchar_t)==2);
# ifdef __MINGW64__
STATIC_ASSERT(sizeof(long double) == 16);
# else
STATIC_ASSERT(sizeof(long double)==8);
# endif

#else
# else

STATIC_ASSERT(sizeof(void *)==4);
STATIC_ASSERT(sizeof(int)==4);
Expand All @@ -30,7 +34,7 @@ STATIC_ASSERT(sizeof(long long int)==8);
STATIC_ASSERT(sizeof(wchar_t)==2);
STATIC_ASSERT(sizeof(long double)==8);

#endif
# endif

#else

Expand Down
2 changes: 1 addition & 1 deletion src/util/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ bool configt::set(const cmdlinet &cmdline)

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

0 comments on commit 3e99b67

Please sign in to comment.