summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uart/uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uart/uart.c b/uart/uart.c
index aef64ce..3ead880 100644
--- a/uart/uart.c
+++ b/uart/uart.c
@@ -54,7 +54,7 @@ static inline size_t rb_store(void *_data, size_t size)
size = avail;
}
- for (int i = 0; i < size; i++)
+ for (size_t i = 0; i < size; i++)
send_rb.buf[(end + i) % sizeof send_rb.buf] = data[i];
send_rb.end = (end + size) % sizeof send_rb.buf;