We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bytes
1 parent d230a19 commit 2afb4dfCopy full SHA for 2afb4df
tests/core/bytes/test_core_bytes.odin
@@ -9,9 +9,8 @@ import "core:testing"
9
@test
10
test_index_byte_sanity :: proc(t: ^testing.T) {
11
// 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, '-')
+ data: [2 * SIMD_SCAN_WIDTH]u8
+ slice.fill(data[:], '-')
15
16
INDEX_MAX :: SIMD_SCAN_WIDTH - 1
17
0 commit comments