Make source code compile with 32 bit (but not build 32 bit code)

This commit is contained in:
gingerBill
2018-06-15 21:46:03 +01:00
parent b92a8c513e
commit ba67e474d3
8 changed files with 23 additions and 25 deletions
+1 -1
View File
@@ -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);