Fix for coverity #29345
authorTobias Markus <tobbi@mozilla-uk.org>
Mon, 23 Feb 2015 16:19:45 +0000 (17:19 +0100)
committerTobias Markus <tobbi@mozilla-uk.org>
Mon, 23 Feb 2015 16:19:45 +0000 (17:19 +0100)
src/scripting/squirrel_util.cpp

index ddf671c..5fd15b4 100644 (file)
@@ -212,7 +212,7 @@ void print_squirrel_stack(HSQUIRRELVM v)
 SQInteger squirrel_read_char(SQUserPointer file)
 {
   std::istream* in = reinterpret_cast<std::istream*> (file);
-  char c = in->get();
+  int c = in->get();
   if(in->eof())
     return 0;
   return c;