From f58c726e466a905ead2d03d051170fa932b422bc Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 27 Jan 2023 17:24:45 +0100 Subject: [PATCH] use static cast --- TP1/C-Cpp/src/mysok.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TP1/C-Cpp/src/mysok.cpp b/TP1/C-Cpp/src/mysok.cpp index 32f6a7f..f4b572a 100644 --- a/TP1/C-Cpp/src/mysok.cpp +++ b/TP1/C-Cpp/src/mysok.cpp @@ -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(nread)) > 0) { bool read_ok = false; for (int i = 0; i < nread; i++) { if (line[i] == board_str[FREE]) {