forked from github/server
fix integer conversion warning
This commit is contained in:
parent
0ee4afc023
commit
9e4e9c2d3e
1 changed files with 1 additions and 1 deletions
|
@ -524,7 +524,7 @@ static int tolua_region_set_age(lua_State * L)
|
||||||
region *self = (region *)tolua_tousertype(L, 1, NULL);
|
region *self = (region *)tolua_tousertype(L, 1, NULL);
|
||||||
|
|
||||||
if (self) {
|
if (self) {
|
||||||
self->age = lua_tointeger(L, 2);
|
self->age = (unsigned short)lua_tointeger(L, 2);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue