bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC)


From: Marin Ramesa
Subject: [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC)
Date: Mon, 2 Dec 2013 22:54:39 +0100

* i386/i386at/kd.c (c): Cast to char.

---
 i386/i386at/kd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c
index 3890c3d..0b780a7 100644
--- a/i386/i386at/kd.c
+++ b/i386/i386at/kd.c
@@ -854,7 +854,7 @@ int vec;
                         * char sequence, for function keys) onto the
                         * input queue.
                         */
-                       for ( ; (c != K_DONE) && (char_idx <= max);
+                       for ( ; ((char)c != K_DONE) && (char_idx <= max);
                             c = key_map[scancode][char_idx++]) {
                                (*linesw[tp->t_line].l_rint)(c, tp);
                        }
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]