1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

unix-file: Fix signed/unsigned implicit conversion

This commit is contained in:
Orgad Shaneh 2024-10-02 10:12:19 +03:00 committed by Andy Green
parent a544db3020
commit dcf9dcaf2a

View file

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