diff libinterp/interpfcn/sysdep.cc @ 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 119ce9f5e1a3
children 24e755668237
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;
     }