提交 74681783 编写于 作者: M Matt Pharr

Image::WritePFM: remove unnecessary cast

上级 634f8f90
......@@ -1685,8 +1685,7 @@ bool Image::WritePFM(const std::string &filename, const ImageMetadata &metadata)
scanline[3 * x + c] = GetChannel({x, y}, c);
}
}
if (fwrite(&scanline[0], sizeof(float), 3 * resolution.x, fp) <
(size_t)(3 * resolution.x))
if (fwrite(&scanline[0], sizeof(float), 3 * resolution.x, fp) < 3 * resolution.x)
goto fail;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册