summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2017-07-19 00:33:30 +0200
committerJoshua Haberman <jhaberman@gmail.com>2017-07-19 00:33:30 +0200
commit6b8767422154008eed98d0df42e36758d38877a4 (patch)
tree9d85accf308d50f20df0e12f39c07aa38b9d0a6e /tests
parent806ffc1d2053f1c02167c7965b39abc997d12ad6 (diff)
Address review comments and fix compile warnings.
Diffstat (limited to 'tests')
-rw-r--r--tests/conformance_upb.c2
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);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback