aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-15 21:46:03 +0100
committergingerBill <bill@gingerbill.org>2018-06-15 21:46:03 +0100
commitba67e474d3ab48cf15916892a15759f50930f72f (patch)
treeed91e7aaa72fb5b194455c5cbea4ace27a99c65d /core/runtime
parentb92a8c513ea04ce2c4e6245d047d47ece0b75fa2 (diff)
Make source code compile with 32 bit (but not build 32 bit code)
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/core.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/core.odin b/core/runtime/core.odin
index aca8699b1..7546d6648 100644
--- a/core/runtime/core.odin
+++ b/core/runtime/core.odin
@@ -374,7 +374,7 @@ append :: proc(array: ^$T/[dynamic]$E, args: ...E, loc := #caller_location) -> i
a := (^mem.Raw_Dynamic_Array)(array);
data := (^E)(a.data);
assert(data != nil);
- mem.copy(mem.ptr_offset(data, uintptr(a.len)), &args[0], size_of(E) * arg_len);
+ mem.copy(mem.ptr_offset(data, a.len), &args[0], size_of(E) * arg_len);
a.len += arg_len;
}
return len(array);