From dcf9dcaf2ab637a530d46d3df1781dfbb190321f Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 2 Oct 2024 10:12:19 +0300 Subject: [PATCH] unix-file: Fix signed/unsigned implicit conversion --- lib/plat/unix/unix-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plat/unix/unix-file.c b/lib/plat/unix/unix-file.c index 81cbb222e..4bdb3c79a 100644 --- a/lib/plat/unix/unix-file.c +++ b/lib/plat/unix/unix-file.c @@ -83,7 +83,7 @@ _lws_plat_file_open(const struct lws_plat_file_ops *fops, const char *filename, const char *vpath, lws_fop_flags_t *flags) { struct stat stat_buf; - int ret = lws_open(filename, (*flags) & LWS_FOP_FLAGS_MASK, 0664); + int ret = lws_open(filename, (int)((*flags) & LWS_FOP_FLAGS_MASK), 0664); lws_fop_fd_t fop_fd; if (ret < 0)