changeset 16092:def3b111cff8

avoid gcc warning about int to char conversion * sysdep.cc (Fkbhit): Explicitly cast int to char.
author John W. Eaton <jwe@octave.org>
date Sat, 23 Feb 2013 10:08:56 -0500
parents 1785493171ac
children c81b4c81339f
files libinterp/interpfcn/sysdep.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/interpfcn/sysdep.cc	Fri Feb 22 19:01:10 2013 -0500
+++ b/libinterp/interpfcn/sysdep.cc	Sat Feb 23 10:08:56 2013 -0500
@@ -655,7 +655,7 @@
       if (c == -1)
         c = 0;
 
-      char s[2] = {c, '\0'};
+      char s[2] = { static_cast<char> (c), '\0' };
 
       retval = s;
     }