summaryrefslogtreecommitdiff
path: root/upb/bytestream.h
diff options
context:
space:
mode:
Diffstat (limited to 'upb/bytestream.h')
-rw-r--r--upb/bytestream.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/upb/bytestream.h b/upb/bytestream.h
index fe049d2..3217ee1 100644
--- a/upb/bytestream.h
+++ b/upb/bytestream.h
@@ -372,8 +372,7 @@ INLINE int upb_bytesink_putc(upb_bytesink *sink, char ch) {
}
INLINE int upb_bytesink_putrepeated(upb_bytesink *sink, char ch, int len) {
- int i;
- for (i = 0; i < len; i++)
+ for (int i = 0; i < len; i++)
if (upb_bytesink_write(sink, &ch, 1) < 0)
return -1;
return len;
@@ -436,7 +435,8 @@ typedef struct {
FILE *file;
bool should_close;
upb_stdio_buf **bufs;
- uint32_t nbuf, szbuf;
+ int nbuf;
+ uint32_t szbuf;
} upb_stdio;
void upb_stdio_init(upb_stdio *stdio);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback