From 9f8d14709476c22ada6ea26c3406fd0471deaee8 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Sun, 8 Mar 2026 17:03:02 +0900 Subject: Verify -1 instead of negative value --- crypto/compat/posix_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/compat/posix_win.c b/crypto/compat/posix_win.c index 00d3d82..bc0fa36 100644 --- a/crypto/compat/posix_win.c +++ b/crypto/compat/posix_win.c @@ -89,7 +89,7 @@ posix_open(const char *path, ...) flags &= ~O_NONBLOCK; const int fh = open(path, flags, mode); - if (fh < 0) { + if (fh == -1) { return fh; } -- cgit v1.2.3-55-g6feb