diff --git a/mp.c b/mp.c index a83128d..a6a4bb6 100644 --- a/mp.c +++ b/mp.c @@ -471,7 +471,7 @@ static void mprbuf_unpack_anytype( mprbuf_t *b, lua_State *L ) { break; case 0xd0: // 8bit neg int if(mprbuf_left(b)>=1){ - lua_pushnumber(L, (char) s[0] ); + lua_pushnumber(L, (signed char) s[0] ); b->ofs += 1; return; }