diff options
| author | Evin Yulo <yujiri@disroot.org> | 2023-05-22 15:45:39 -0400 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-05-29 13:01:11 +0300 |
| commit | 235b776d619d64dee62fc88e85bd53421cce37f7 (patch) | |
| tree | 8804f7c206a0f7f0f34f215a6a5e149305b75812 /src | |
| parent | ab37ab33ce94b4fb6536bcc2f3981c0cc257c9f0 (diff) | |
| download | zig-235b776d619d64dee62fc88e85bd53421cce37f7.tar.gz zig-235b776d619d64dee62fc88e85bd53421cce37f7.zip | |
fix #15778: Binary operations on empty vectors crash
Diffstat (limited to 'src')
| -rw-r--r-- | src/value.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/value.zig b/src/value.zig index 613c3d9ca6..b18ba3d834 100644 --- a/src/value.zig +++ b/src/value.zig @@ -2208,6 +2208,7 @@ pub const Value = extern union { } return true; }, + .empty_array => return true, .str_lit => { const str_lit = lhs.castTag(.str_lit).?.data; const bytes = mod.string_literal_bytes.items[str_lit.index..][0..str_lit.len]; |
