From cd749a7652f6097f4d0548a539be6698337703b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 29 Apr 2013 21:40:34 +0200 Subject: [PATCH] Terminal: use unsigned short instead of int to avoid a narrowing conversion warning. * unsigned short is the type used in the struct winsize. --- src/apps/terminal/Shell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/terminal/Shell.cpp b/src/apps/terminal/Shell.cpp index b6c70ff8ad..5dd91d47dd 100644 --- a/src/apps/terminal/Shell.cpp +++ b/src/apps/terminal/Shell.cpp @@ -119,8 +119,8 @@ typedef struct { int status; /* status of child */ char msg[128]; /* error message */ - int row; /* terminal rows */ - int col; /* Terminal columns */ + unsigned short row; /* terminal rows */ + unsigned short col; /* Terminal columns */ } handshake_t; /* status of handshake */