X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/47cbb2d41851e680c84b3a7dd0465f7f7960a9ec..86dab5168e73c78c9eb348a1008e81822c7b8d2e:/client/scripting.c?ds=sidebyside diff --git a/client/scripting.c b/client/scripting.c index f0c56baf..cc59f995 100644 --- a/client/scripting.c +++ b/client/scripting.c @@ -268,8 +268,8 @@ static int l_crc16(lua_State *L) { size_t size; const char *p_str = luaL_checklstring(L, 1, &size); - - unsigned short retval = crc16_ccitt( p_str, size); + + uint16_t retval = crc16_ccitt( (uint8_t*) p_str, size); lua_pushinteger(L, (int) retval); return 1; }