mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-11-03 21:49:42 -09:00
Zig 0.16: meta.intToEnum -> enums.fromInt
This commit is contained in:
parent
f2f2fad521
commit
4595a791b5
1 changed files with 2 additions and 2 deletions
|
|
@ -233,8 +233,8 @@ const CborVal = struct {
|
|||
|
||||
fn etype(v: *const CborVal) model.EType {
|
||||
const n = v.int(i32);
|
||||
return std.meta.intToEnum(model.EType, n)
|
||||
catch if (n < 0) .pattern else .nonreg;
|
||||
return std.enums.fromInt(model.EType, n)
|
||||
orelse if (n < 0) .pattern else .nonreg;
|
||||
}
|
||||
|
||||
fn itemref(v: *const CborVal, cur: u64) u64 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue