From 2d32b819dc30355b199f66aa59c9db5b98615cf8 Mon Sep 17 00:00:00 2001 From: Karl Zylinski Date: Mon, 5 Aug 2024 16:32:34 +0200 Subject: [PATCH] common.odin compile fix Fix for "Error: Prefer to separate 'where' clauses with a comma rather than '&&'" --- core/image/common.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/image/common.odin b/core/image/common.odin index 6ae9850da..c9558bb0d 100644 --- a/core/image/common.odin +++ b/core/image/common.odin @@ -590,7 +590,7 @@ Channel :: enum u8 { // Take a slice of pixels (`[]RGBA_Pixel`, etc), and return an `Image` // Don't call `destroy` on the resulting `Image`. Instead, delete the original `pixels` slice. -pixels_to_image :: proc(pixels: [][$N]$E, width: int, height: int) -> (img: Image, ok: bool) where E == u8 || E == u16, N >= 1 && N <= 4 { +pixels_to_image :: proc(pixels: [][$N]$E, width: int, height: int) -> (img: Image, ok: bool) where E == u8 || E == u16, N >= 1, N <= 4 { if len(pixels) != width * height { return {}, false }