antirez/lua-cmsgpack — pull request #33 by tinglei8 (2014-08-05 08:20:29+00:00)
Title: use (signed char) instead of (char), this fixes for platforms that treat...

On Android, char is interpreted as unsigned by default.

When decoding "int 8" format on Android, the following type conversion produces incorrect result:
lua_pushnumber(L,(char)c->p[1]); // (e.g. -39 -> 217)

Changing (char) to (signed char) fixes this on Android and other platforms that treat char as unsigned by default.