From cf291335b721e8078864f931fab8bde43b586f06 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 7 Apr 2024 17:50:39 +0300 Subject: [PATCH] freadln.c: test: add extra parentheses for `x` in a macro --- c-programming/io/freadln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-programming/io/freadln.c b/c-programming/io/freadln.c index e14a47b..9392ac3 100644 --- a/c-programming/io/freadln.c +++ b/c-programming/io/freadln.c @@ -85,7 +85,7 @@ int freadln(FILE* f, char** output, size_t* length_out) { # define DO_SLEEP 1 # elif defined(_WIN32) || defined(WIN32) # include -# define SLEEP_FN(x) Sleep((DWORD) x) +# define SLEEP_FN(x) Sleep((DWORD) (x)) # define DO_SLEEP 1 # elif defined(__CYGWIN__) || defined(__unix__) || (defined(__APPLE__) && \ defined(__MACH__)) || defined(__linux__) || defined(__FreeBSD__) || \