mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
parent
5696cc8ab6
commit
38215ccc3e
@ -2689,6 +2689,12 @@ pub const Value = extern union {
|
||||
// to have only one possible value itself.
|
||||
.the_only_possible_value => return val,
|
||||
|
||||
// pointer to integer casted to pointer of array
|
||||
.int_u64, .int_i64 => {
|
||||
assert(index == 0);
|
||||
return val;
|
||||
},
|
||||
|
||||
else => unreachable,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user