Browse Source

common.odin compile fix

Fix for "Error: Prefer to separate 'where' clauses with a comma rather than '&&'"
Karl Zylinski 1 year ago
parent
commit
2d32b819dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/image/common.odin

+ 1 - 1
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
 	}