fix integer conversion warning

This commit is contained in:
Enno Rehling 2020-11-13 18:47:44 +01:00
parent 0ee4afc023
commit 9e4e9c2d3e
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ static int tolua_region_set_age(lua_State * L)
region *self = (region *)tolua_tousertype(L, 1, NULL);
if (self) {
self->age = lua_tointeger(L, 2);
self->age = (unsigned short)lua_tointeger(L, 2);
}
return 0;
}