未验证 提交 1a61bcd2 编写于 作者: L lrw04 提交者: GitHub

Fix potential overflow in determining the datatype (#4988)

上级 0829fa49
......@@ -117,7 +117,7 @@ Mat ModelBinFromDataReader::load(int w, int type) const
return Mat();
}
unsigned int flag = flag_struct.f0 + flag_struct.f1 + flag_struct.f2 + flag_struct.f3;
unsigned int flag = (int)flag_struct.f0 + flag_struct.f1 + flag_struct.f2 + flag_struct.f3;
if (flag_struct.tag == 0x01306B47)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册