Fix typecast warning

This commit is contained in:
Carsten Sonne Larsen 2018-08-05 22:30:44 +02:00
parent be4b1e7fd6
commit 434d4a72e2
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ void TermiosConsole::WriteString(const char* string)
void TermiosConsole::Write(const char* string, unsigned int length)
{
ssize_t res = write(STDOUT_FILENO, string, length);
if (res != length)
if (res != (ssize_t)length)
{
exit = true;
}