Skip to content

Commit fe74c79

Browse files
author
git apple-llvm automerger
committed
Merge commit '6b49e6a14fa2' from llvm.org/main into next
2 parents 3890745 + 6b49e6a commit fe74c79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libc/shared/rpc_opcodes.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ typedef enum {
4747
LIBC_SYSTEM = LLVM_LIBC_OPCODE(29),
4848

4949
// Internal opcodes for testing.
50-
LIBC_TEST_INCREMENT = LLVM_LIBC_OPCODE(1 << 15),
51-
LIBC_TEST_INTERFACE = LLVM_LIBC_OPCODE((1 << 15) + 1),
52-
LIBC_TEST_STREAM = LLVM_LIBC_OPCODE((1 << 15) + 2),
50+
LIBC_TEST_INCREMENT = LLVM_LIBC_OPCODE((1 << 15)),
51+
LIBC_TEST_INTERFACE = LLVM_LIBC_OPCODE(((1 << 15) + 1)),
52+
LIBC_TEST_STREAM = LLVM_LIBC_OPCODE(((1 << 15) + 2)),
5353
LIBC_LAST = 0xFFFFFFFF,
5454
} rpc_opcode_t;
5555

libc/src/__support/RPC/rpc_server.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ LIBC_INLINE static void handle_printf(rpc::Server::Port &port,
298298

299299
results[lane] = static_cast<int>(
300300
fwrite(buffer, 1, writer.get_chars_written(), files[lane]));
301-
if (results[lane] != writer.get_chars_written() || ret == -1)
301+
if (size_t(results[lane]) != writer.get_chars_written() || ret == -1)
302302
results[lane] = -1;
303303
}
304304

0 commit comments

Comments
 (0)