Skip to content

Commit f544c63

Browse files
committed
Fix C long size for 64-bit MSVC target
1 parent 3b12807 commit f544c63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gen/target.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ void Target::_init() {
3939

4040
cppExceptions = true;
4141

42-
c_longsize = global.params.is64bit ? 8 : 4;
42+
c_longsize =
43+
global.params.is64bit && !triple.isWindowsMSVCEnvironment() ? 8 : 4;
4344
c_long_doublesize = realsize;
4445
classinfosize = 0; // unused
4546
maxStaticDataSize = std::numeric_limits<unsigned long long>::max();

0 commit comments

Comments
 (0)