1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +00:00

AK: Use size_t for CircularQueue and CircularDeque

This commit is contained in:
Andreas Kling 2020-02-20 13:18:42 +01:00
parent 88b9fcb976
commit 7592f9afd5
5 changed files with 19 additions and 15 deletions

View file

@ -54,7 +54,9 @@ void TTY::set_default_termios()
ssize_t TTY::read(FileDescription&, u8* buffer, ssize_t size)
{
if (m_input_buffer.size() < size)
ASSERT(size >= 0);
if (m_input_buffer.size() < static_cast<size_t>(size))
size = m_input_buffer.size();
if (in_canonical_mode()) {