diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2017-07-19 00:33:30 +0200 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2017-07-19 00:33:30 +0200 |
commit | 6b8767422154008eed98d0df42e36758d38877a4 (patch) | |
tree | 9d85accf308d50f20df0e12f39c07aa38b9d0a6e /tests/conformance_upb.c | |
parent | 806ffc1d2053f1c02167c7965b39abc997d12ad6 (diff) |
Address review comments and fix compile warnings.
Diffstat (limited to 'tests/conformance_upb.c')
-rw-r--r-- | tests/conformance_upb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/conformance_upb.c b/tests/conformance_upb.c index 2ef8c6d..70ea300 100644 --- a/tests/conformance_upb.c +++ b/tests/conformance_upb.c @@ -33,7 +33,7 @@ bool CheckedRead(int fd, void *buf, size_t len) { } void CheckedWrite(int fd, const void *buf, size_t len) { - if (write(fd, buf, len) != len) { + if ((size_t)write(fd, buf, len) != len) { perror("writing to test runner"); exit(1); } |