diff options
| author | Damian Tarnawski <gthetarnav@gmail.com> | 2024-06-14 19:45:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-14 19:45:54 +0200 |
| commit | 8ba644dd79ef878d619abbca9de8b52856ae96c1 (patch) | |
| tree | e3f215a9e05312c31f701dd6324f3c9e35016b55 /core/slice | |
| parent | b19bf5bbda05f5629d1b1435521e9fd9402e0506 (diff) | |
Add `#no_bounds_check` to `slice.equal`
Diffstat (limited to 'core/slice')
| -rw-r--r-- | core/slice/slice.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/slice/slice.odin b/core/slice/slice.odin index 3cab9189d..d8f4df88e 100644 --- a/core/slice/slice.odin +++ b/core/slice/slice.odin @@ -180,7 +180,7 @@ binary_search_by :: proc(array: $A/[]$T, key: T, f: proc(T, T) -> Ordering) -> ( } @(require_results) -equal :: proc(a, b: $T/[]$E) -> bool where intrinsics.type_is_comparable(E) { +equal :: proc(a, b: $T/[]$E) -> bool where intrinsics.type_is_comparable(E) #no_bounds_check { if len(a) != len(b) { return false } @@ -736,4 +736,4 @@ bitset_to_enum_slice_with_make :: proc(bs: $T, $E: typeid, allocator := context. return bitset_to_enum_slice(buf, bs) } -bitset_to_enum_slice :: proc{bitset_to_enum_slice_with_make, bitset_to_enum_slice_with_buffer}
\ No newline at end of file +bitset_to_enum_slice :: proc{bitset_to_enum_slice_with_make, bitset_to_enum_slice_with_buffer} |