diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2017-05-18 19:22:32 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2017-05-18 19:26:47 +0100 |
commit | fee379e0042b8232ca1b106fd02134ce4451953e (patch) | |
tree | 678181fcdc1d155da0d76e2629fc0a7cf3f60b59 /uart | |
parent | 7cc6d5becb964a18b39b2bb882dce536dde0e33b (diff) | |
download | fmk-fee379e0042b8232ca1b106fd02134ce4451953e.tar.gz fmk-fee379e0042b8232ca1b106fd02134ce4451953e.tar.xz fmk-fee379e0042b8232ca1b106fd02134ce4451953e.zip |
uart/uart.c: use size_t to silence gcc
Diffstat (limited to 'uart')
-rw-r--r-- | uart/uart.c | 2 |
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; |