Skip to content

Commit

Permalink
removed std from atoi, for windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sigrimm committed Jun 22, 2020
1 parent 0c35cf0 commit f1a48c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hitran.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ int main(int argc, char *argv[]){
slen = sbstr.length();
sbstr0 = sbstr.substr(0, slen/2);
sbstr1 = sbstr.substr(slen/2+1, slen/2);
range0 = std::atoi(sbstr0.c_str());
range1 = std::atoi(sbstr1.c_str());
range0 = atoi(sbstr0.c_str());
range1 = atoi(sbstr1.c_str());
}
else{
sbstr = "";
Expand Down Expand Up @@ -247,8 +247,8 @@ int main(int argc, char *argv[]){
slen = sbstr.length();
sbstr0 = sbstr.substr(0, slen/2);
sbstr1 = sbstr.substr(slen/2+1, slen/2);
range0 = std::atoi(sbstr0.c_str());
range1 = std::atoi(sbstr1.c_str());
range0 = atoi(sbstr0.c_str());
range1 = atoi(sbstr1.c_str());
}
else{
sbstr = "";
Expand Down

0 comments on commit f1a48c0

Please sign in to comment.