diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-16 12:06:03 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-16 12:06:03 +0000 |
| commit | 2dca39b55716d84e760d3a33b9754c18d7f6f1cc (patch) | |
| tree | 685a8a85f7c023cff913d29e49ecff6e6a551380 /core/runtime | |
| parent | b55fa268bf156ff72551868d84f45b579e2025b2 (diff) | |
Remove `auto_cast` procedure field flag
Fixes #2285
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/core_builtin_soa.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/runtime/core_builtin_soa.odin b/core/runtime/core_builtin_soa.odin index a6b356642..2b7fd3681 100644 --- a/core/runtime/core_builtin_soa.odin +++ b/core/runtime/core_builtin_soa.odin @@ -150,14 +150,14 @@ make_soa_dynamic_array :: proc($T: typeid/#soa[dynamic]$E, allocator := context. } @builtin -make_soa_dynamic_array_len :: proc($T: typeid/#soa[dynamic]$E, auto_cast length: int, allocator := context.allocator, loc := #caller_location) -> (array: T) { +make_soa_dynamic_array_len :: proc($T: typeid/#soa[dynamic]$E, #any_int length: int, allocator := context.allocator, loc := #caller_location) -> (array: T) { context.allocator = allocator resize_soa(&array, length, loc) return } @builtin -make_soa_dynamic_array_len_cap :: proc($T: typeid/#soa[dynamic]$E, auto_cast length, capacity: int, allocator := context.allocator, loc := #caller_location) -> (array: T) { +make_soa_dynamic_array_len_cap :: proc($T: typeid/#soa[dynamic]$E, #any_int length, capacity: int, allocator := context.allocator, loc := #caller_location) -> (array: T) { context.allocator = allocator if reserve_soa(&array, capacity, loc) { resize_soa(&array, length, loc) |