From 2ac9e03c52b713d4f8aecc6fab46f213c580dfc3 Mon Sep 17 00:00:00 2001 From: Leah Amelia Chen Date: Mon, 8 Dec 2025 13:10:05 +0800 Subject: [PATCH] quirks: remove type signature for inlineAssert Functions with different calling conventions are not compatible with each other Fixes all release builds + CI --- src/quirks.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quirks.zig b/src/quirks.zig index db2760141..ecef74600 100644 --- a/src/quirks.zig +++ b/src/quirks.zig @@ -42,7 +42,7 @@ pub fn disableDefaultFontFeatures(face: *const font.Face) bool { /// is negligible, but we have some asserts inside tight loops and hotpaths /// that cause significant overhead (as much as 15-20%) when they don't get /// optimized out. -pub const inlineAssert: fn (bool) void = switch (builtin.mode) { +pub const inlineAssert = switch (builtin.mode) { // In debug builds we just use std.debug.assert because this // fixes up stack traces. `inline` causes broken stack traces. This // is probably a Zig compiler bug but until it is fixed we have to