未验证 提交 0489cc2e 编写于 作者: T Tyr Chen

fix a logic bug

上级 9ab70c10
......@@ -32,7 +32,7 @@ impl Iterator for Equation<Quadratic> {
fn next(&mut self) -> Option<Self::Item> {
self.current += 1;
if self.current == u32::MAX {
if self.current >= u16::MAX as u32 {
return None;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册