From: Tobias Markus Date: Mon, 23 Feb 2015 16:19:45 +0000 (+0100) Subject: Fix for coverity #29345 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f5ad6f69da56235de950f21de30563802c6f2e06;p=supertux.git Fix for coverity #29345 --- diff --git a/src/scripting/squirrel_util.cpp b/src/scripting/squirrel_util.cpp index ddf671ce8..5fd15b42d 100644 --- a/src/scripting/squirrel_util.cpp +++ b/src/scripting/squirrel_util.cpp @@ -212,7 +212,7 @@ void print_squirrel_stack(HSQUIRRELVM v) SQInteger squirrel_read_char(SQUserPointer file) { std::istream* in = reinterpret_cast (file); - char c = in->get(); + int c = in->get(); if(in->eof()) return 0; return c;