Image: Fix implicit enum error

This commit is contained in:
WalterPlinge
2022-04-18 20:42:50 +01:00
parent 8d370fabdd
commit b6abd691f4
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ write_to_buffer :: proc(img: Image, allocator := context.allocator) -> (buffer:
//? validation
if header.format in (PBM + PGM + Formats{.Pf}) && img.channels != 1 \
|| header.format in (PPM + Formats{.PF}) && img.channels != 3 {
err = Format_Error.Invalid_Number_Of_Channels
err = .Invalid_Number_Of_Channels
return
}