mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 20:28:15 +00:00
fmt.odin uses ^[]byte rather than custom Buffer type
This commit is contained in:
+1
-5
@@ -460,11 +460,7 @@ __slice_append :: proc(slice_: rawptr, elem_size, elem_align: int,
|
||||
return slice.count;
|
||||
}
|
||||
|
||||
|
||||
ok := true;
|
||||
if item_count > (slice.capacity-slice.count) {
|
||||
item_count = (slice.capacity-slice.count);
|
||||
}
|
||||
item_count = min(slice.capacity-slice.count, item_count);
|
||||
if item_count > 0 {
|
||||
data := cast(^byte)slice.data;
|
||||
assert(data != nil);
|
||||
|
||||
Reference in New Issue
Block a user