Fix comparison with args in mode check. (#1019)

@wang-xinyu @wdhao  Before we had assignment, not comparison.(somebody forgot "=" but not only)
This commit is contained in:
Egor Tolmachev 2022-06-27 08:51:24 +03:00 committed by GitHub
parent e418cb9e66
commit dbdad6846c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,8 @@ int main(int argc, char** argv)
cout << "begin" << endl;
//string wts = "G:/shaj/trainsform/ktn5n6_29.511.21.8.wts";
//string eng = "G:/shaj/trainsform/trainsform.eng";
if (argv[1] = "-s") {
std::string argv1 = argv[1];
if (argv1 == "-s") {
string wts = argv[2];
string eng = argv[3];
createEng(wts,eng);