提交 241120d9 编写于 作者: X xjqbest

fix bug of num > INT_MAX

上级 dac70ad4
......@@ -546,7 +546,7 @@ bool MultiSlotDataFeed::CheckFile(const char* filename) {
VLOG(0) << "please check line<" << instance_cout << "> in file<"
<< filename << ">";
return false;
} else if (errno == ERANGE) {
} else if (errno == ERANGE || num > INT_MAX) {
VLOG(0) << "error: the number of ids greater than INT_MAX";
VLOG(0) << "please check line<" << instance_cout << "> in file<"
<< filename << ">";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册