From a5a56e061cf9949986807c14834c9fc010b0da27 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 11 Aug 2022 11:10:05 +0100 Subject: [PATCH] Fix to png example.odin --- core/image/png/example.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/image/png/example.odin b/core/image/png/example.odin index 17436c260..c1e2f0c73 100644 --- a/core/image/png/example.odin +++ b/core/image/png/example.odin @@ -219,7 +219,7 @@ write_image_as_ppm :: proc(filename: string, image: ^image.Image) -> (success: b defer close(fd) write_string(fd, - fmt.tprintf("P6\n%v %v\n%v\n", width, height, (1 << uint(depth) - 1)), + fmt.tprintf("P6\n%v %v\n%v\n", width, height, uint(1 << uint(depth) - 1)), ) if channels == 3 {