diff --git a/examples/spmm/spmm.cc b/examples/spmm/spmm.cc index ef5f5d5706..f5e9bdf374 100644 --- a/examples/spmm/spmm.cc +++ b/examples/spmm/spmm.cc @@ -627,7 +627,7 @@ static int parseOption(std::string &option, int default_value) { pos = option.length(); } token = option.substr(0, pos); - N = std::stoi(token); + N = std::stol(token); option.erase(0, pos + 1); return N; }