use static cast

This commit is contained in:
Mylloon 2023-01-27 17:24:45 +01:00
parent 88f3d5249d
commit f58c726e46
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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]) {