Drop old facts after an impure function call

This commit is contained in:
Nigel Tao committed 2021-02-02 22:11:45 +11:00
1 parent 4848859f97
commit 10146b75dd
3 files changed
+43 -4

No files matched your search

+1 -2
View File
@@ -247,8 +247,7 @@ pri func decoder.decode_ihdr?(src: base.io_reader) {
// Color.
this.color_type = args.src.read_u8?()
// TODO: uncomment.
// this.bytes_per_row = 0
this.bytes_per_row = 0
this.calculate_bytes_per_row!()
if this.bytes_per_row == 0 {
return "#unsupported PNG file"