diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-20 15:01:00 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-20 15:01:00 +0200 |
commit | fb872b6780842d10abf30d9fc1cff7273039b765 (patch) | |
tree | 64e9ead45612f888f3d597e2195294ba0b4b957f /crawl-ref/source | |
parent | f26a5d74bd0b476c24237432be3f940826c05bb7 (diff) | |
download | crawl-ref-fb872b6780842d10abf30d9fc1cff7273039b765.tar.gz crawl-ref-fb872b6780842d10abf30d9fc1cff7273039b765.zip |
Silence int cast warning.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/l_dgn_bf.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_dgn_bf.cc b/crawl-ref/source/l_dgn_bf.cc index 8c4d471fc9..e79e6799e6 100644 --- a/crawl-ref/source/l_dgn_bf.cc +++ b/crawl-ref/source/l_dgn_bf.cc @@ -20,7 +20,7 @@ static int _table_int(lua_State *ls, int idx, const char *name, int defval) bool valid = lua_isnumber(ls, idx); if (!nil && !valid) luaL_error(ls, "'%s' in table, but not an int.", name); - int ret = (!nil && valid ? lua_tonumber(ls, idx) : defval); + int ret = (!nil && valid ? luaL_checkint(ls, idx) : defval); lua_pop(ls, 1); return (ret); } |