mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-20 22:42:40 +08:00
[libc][time] Ensure the data types are consistent
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user