Skip to content

Commit

Permalink
update int to string
Browse files Browse the repository at this point in the history
  • Loading branch information
xinntao committed Apr 24, 2022
1 parent 8f32b50 commit 37026f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,8 @@ int main(int argc, char** argv)

if (modelname == PATHSTR("realesr-animevideov3"))
{
sprintf(parampath, "%s/%s-x%s.param", model.c_str(), modelname.c_str(), scale.c_str());
sprintf(modelpath, "%s/%s-x%s.bin", model.c_str(), modelname.c_str(), scale.c_str());
sprintf(parampath, "%s/%s-x%s.param", model.c_str(), modelname.c_str(), std::to_string(scale).c_str());
sprintf(modelpath, "%s/%s-x%s.bin", model.c_str(), modelname.c_str(), std::to_string(scale).c_str());
}
else{
sprintf(parampath, "%s/%s.param", model.c_str(), modelname.c_str());
Expand Down

0 comments on commit 37026f4

Please sign in to comment.