fix %u <> size_t compilation warning

This commit is contained in:
Philippe Teuwen 2019-04-05 21:12:32 +02:00
parent 8c017157d4
commit 84753b91c0

View file

@ -797,7 +797,7 @@ static int l_T55xx_detect(lua_State *L) {
if (size != 1) return returnToLuaWithError(L, "Wrong size of useGB, got %d , expected 1", (int) size);
sscanf(p_gb, "%u", &gb);
useGB = ( gb ) ? true : false;
printf("p_gb size %u | %c \n", size, useGB ? 'Y':'N');
printf("p_gb size %zu | %c \n", size, useGB ? 'Y':'N');
}
case 1: {
const char *p_pwd = luaL_checklstring(L, 1, &size);