Skip to content

Commit

Permalink
Refactor while loop condition for MISC::asc()
Browse files Browse the repository at this point in the history
whileループからbreakで抜けるように修正する。
  • Loading branch information
JD Project authored and ma8ma committed Sep 29, 2019
1 parent fe8f303 commit 91324d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jdlib/miscutil.cpp
Expand Up @@ -1868,7 +1868,7 @@ void MISC::asc( const char* str1, std::string& str2, std::vector< int >& table_p
}
}

while( !flag_hkana && hkana_table1[ i ][ 0 ][ 0 ] != '\0' ){
while( hkana_table1[ i ][ 0 ][ 0 ] != '\0' ){

if( in1 == hkana_table1[ i ][ 0 ][ 0 ]
&& in2 == hkana_table1[ i ][ 0 ][ 1 ]
Expand All @@ -1879,6 +1879,7 @@ void MISC::asc( const char* str1, std::string& str2, std::vector< int >& table_p

if( dakuten ) pos += 3;
flag_hkana = true;
break;
}
++i;
}
Expand Down

0 comments on commit 91324d2

Please sign in to comment.