aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2017-11-27 20:37:09 +0000
committergingerBill <bill@gingerbill.org>2017-11-27 20:37:09 +0000
commit3268f43340454c6df15ea9f644f120923cbe4839 (patch)
treef03e1129bdc94101fb2b88cd400e482e086e1163 /src/check_type.cpp
parent05e374934de040092ef79c41f94645633e53b57d (diff)
Update ABI for basic types
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 81bc7a0d1..7d4f8ca6e 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -1701,7 +1701,8 @@ Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type) {
// Especially the only Odin types
case Type_Basic: {
i64 sz = bt->Basic.size;
- if (sz > 8 && build_context.word_size < 8) {
+ // if (sz > 8 && build_context.word_size < 8) {
+ if (sz > 8) {
new_type = make_type_pointer(a, original_type);
}
break;
@@ -1742,7 +1743,8 @@ Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type) {
// Especially the only Odin types
case Type_Basic: {
i64 sz = bt->Basic.size;
- if (sz > 8 && build_context.word_size < 8) {
+ // if (sz > 8 && build_context.word_size < 8) {
+ if (sz > 8) {
new_type = make_type_pointer(a, original_type);
}