[libc][time] Ensure the data types are consistent

This commit is contained in:
Meco Man
2021-10-13 23:18:55 -04:00
parent 5ab2901dad
commit 396b7da6fd
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ rt_size_t rt_ringbuffer_peak(struct rt_ringbuffer *rb, rt_uint8_t **ptr)
*ptr = &rb->buffer_ptr[rb->read_index];
if(rb->buffer_size - rb->read_index > size)
if((rt_size_t)(rb->buffer_size - rb->read_index) > size)
{
rb->read_index += size;
return size;