X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/47cbb2d41851e680c84b3a7dd0465f7f7960a9ec..b1329a02643392dec5090b1f978385a9732e9af8:/client/scripting.c 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; }