diff --git a/paddle/fluid/framework/data_feed.cc b/paddle/fluid/framework/data_feed.cc index 7529b7578e607a49395d9f486ac7a5e20cf7aa69..0291b6f66a9e8cb6a3c16530084d3e3e7a6c39c1 100644 --- a/paddle/fluid/framework/data_feed.cc +++ b/paddle/fluid/framework/data_feed.cc @@ -531,7 +531,7 @@ bool MultiSlotDataFeed::CheckFile(const char* filename) { char* endptr = const_cast(str); int len = line.length(); for (size_t i = 0; i < all_slots_.size(); ++i) { - long num = strtol(endptr, &endptr, 10); + auto num = strtol(endptr, &endptr, 10); if (num < 0) { VLOG(0) << "error: the number of ids is a negative number: " << num; VLOG(0) << "please check line<" << instance_cout << "> in file<"