Skip to content

Commit 2afb4df

Browse files
committed
Remove unneeded alloc in bytes test
1 parent d230a19 commit 2afb4df

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/core/bytes/test_core_bytes.odin

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ import "core:testing"
99
@test
1010
test_index_byte_sanity :: proc(t: ^testing.T) {
1111
// We must be able to find the byte at the correct index.
12-
data := make([]u8, 2 * SIMD_SCAN_WIDTH)
13-
defer delete(data)
14-
slice.fill(data, '-')
12+
data: [2 * SIMD_SCAN_WIDTH]u8
13+
slice.fill(data[:], '-')
1514

1615
INDEX_MAX :: SIMD_SCAN_WIDTH - 1
1716

0 commit comments

Comments
 (0)