Skip to content

Commit 8857d44

Browse files
committed
FIX: silenced lower precedence warning
1 parent f10ea4a commit 8857d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/posix/dev-file.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ static int Get_File_Info(REBREQ *file)
364364
}
365365

366366
// Set the modes:
367-
modes = O_BINARY | GET_FLAG(file->modes, RFM_READ) ? O_RDONLY : O_RDWR;
367+
modes = (O_BINARY | GET_FLAG(file->modes, RFM_READ)) ? O_RDONLY : O_RDWR;
368368

369369
if (GET_FLAGS(file->modes, RFM_WRITE, RFM_APPEND)) {
370370
modes = O_BINARY | O_RDWR | O_CREAT;

0 commit comments

Comments
 (0)