SemanticTree: simplify max_depth logic

This commit is contained in:
Adrià Arrufat
2026-03-19 20:25:20 +09:00
parent f0cfe3ffc8
commit 9c2393351d
3 changed files with 6 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ fn getSemanticTree(cmd: anytype) !void {
.arena = cmd.arena,
.prune = params.prune orelse true,
.interactive_only = params.interactiveOnly orelse false,
.max_depth = params.maxDepth,
.max_depth = params.maxDepth orelse std.math.maxInt(u32) - 1,
};
if (params.format) |format| {