From 7adf75caad961fb8d81fd7517c1db17a6df87a3a Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 21 May 2025 12:55:28 -0700 Subject: [PATCH] update to Zig 0.14 --- sRGB.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sRGB.zig b/sRGB.zig index 5ac840720087970d0bbf94d0313d948d1837b162..3135fb560f33b0d2e7a29bb0656fedc22379a309 100644 --- a/sRGB.zig +++ b/sRGB.zig @@ -51,7 +51,7 @@ pub fn format(x: Self, comptime fmt: []const u8, options: std.fmt.FormatOptions, _ = fmt; _ = options; if (x.a < 255) { - @setCold(true); + @branchHint(.cold); try writer.print("#{:0>2}{:0>2}{:0>2}{:0>2}", .{ std.fmt.fmtSliceHexLower(&.{x.r}), std.fmt.fmtSliceHexLower(&.{x.g}), @@ -73,7 +73,7 @@ pub usingnamespace _x.mixin(@This(), u8, .r, .g, .b); // https://webstore.iec.ch/publication/6169 pub fn to_linear_rgb(x: Self) color.LinearRgb { const lut = comptime blk: { - @setEvalBranchQuota(10_000); + @setEvalBranchQuota(20_000); var res: [256]f32 = undefined; for (0..256) |i| { const c = @as(f32, @floatFromInt(i)) / 255.0; -- 2.54.0