From a2117d23b299be9d86b4356a1cb40bd9751822bc Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 5 Aug 2022 12:41:25 +0100 Subject: [PATCH] Change `unreachable` with `panic` --- core/image/png/png.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/image/png/png.odin b/core/image/png/png.odin index 35fdb58d8..3faa39c83 100644 --- a/core/image/png/png.odin +++ b/core/image/png/png.odin @@ -1002,7 +1002,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a o16 = o16[out_image_channels:] } case: - unreachable("We should never seen # channels other than 1-4 inclusive.") + panic("We should never seen # channels other than 1-4 inclusive.") } img.pixels = t @@ -1195,7 +1195,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a o = o[out_image_channels:] } case: - unreachable("We should never seen # channels other than 1-4 inclusive.") + panic("We should never seen # channels other than 1-4 inclusive.") } img.pixels = t @@ -1206,7 +1206,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a This may change if we ever don't expand 1, 2 and 4 bit images. But, those raw returns will likely bypass this processing pipeline. */ - unreachable("We should never see bit depths other than 8, 16 and 'Paletted' here.") + panic("We should never see bit depths other than 8, 16 and 'Paletted' here.") } return img, nil