apprt/gtk: fix int cast

This commit is contained in:
Mitchell Hashimoto
2024-08-26 20:16:20 -07:00
parent d7e7f55956
commit 512b24818a

View File

@ -808,7 +808,7 @@ pub fn gotoTab(self: *Surface, tab: apprt.GotoTab) void {
.previous => window.gotoPreviousTab(self),
.next => window.gotoNextTab(self),
.last => window.gotoLastTab(),
else => window.gotoTab(@intFromEnum(tab)),
else => window.gotoTab(@intCast(@intFromEnum(tab))),
}
}