浏览代码

Fix to png example.odin

gingerBill 3 年之前
父节点
当前提交
a5a56e061c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/image/png/example.odin

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