From 5966600cc5ee26f399a504e12187125bd12a2edb Mon Sep 17 00:00:00 2001 From: Kengo Nakajima Date: Fri, 4 May 2012 12:51:26 +0900 Subject: [PATCH] android ndk unpacking signed char --- mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }