aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tcc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcc.c b/tcc.c
index 2ba115d..c448a03 100644
--- a/tcc.c
+++ b/tcc.c
@@ -6266,7 +6266,11 @@ static int type_size(CType *type, int *a)
return LDOUBLE_SIZE;
} else if (bt == VT_DOUBLE || bt == VT_LLONG) {
#ifdef TCC_TARGET_I386
+#ifdef TCC_TARGET_PE
*a = 8;
+#else
+ *a = 4;
+#endif
#elif defined(TCC_TARGET_ARM)
#ifdef TCC_ARM_EABI
*a = 8;