use static cast
This commit is contained in:
parent
88f3d5249d
commit
f58c726e46
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ void sok_board_t::load(char *_file) {
|
|||
}
|
||||
board_nbl = 0;
|
||||
while ((nread = getline(&line, &len, fp)) != -1) {
|
||||
if (((int)nread) > 0) {
|
||||
if ((static_cast<int>(nread)) > 0) {
|
||||
bool read_ok = false;
|
||||
for (int i = 0; i < nread; i++) {
|
||||
if (line[i] == board_str[FREE]) {
|
||||
|
|
Reference in a new issue