1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 09:59:04 +00:00

Adds explicit type casting to silence MSVC compiler warnings about

"possible loss of data". Fixes #995 (together with r37008, r37009)
This commit is contained in:
nnposter
2017-09-23 23:37:18 +00:00
parent 9d11605113
commit 0bf41f28de
2 changed files with 2 additions and 2 deletions

2
lpeg.c
View File

@@ -2178,7 +2178,7 @@ static void fixonecall (lua_State *L, int postable, TTree *g, TTree *t) {
int n;
lua_rawgeti(L, -1, t->key); /* get rule's name */
lua_gettable(L, postable); /* query name in position table */
n = lua_tonumber(L, -1); /* get (absolute) position */
n = (int)lua_tonumber(L, -1); /* get (absolute) position */
lua_pop(L, 1); /* remove position */
if (n == 0) { /* no position? */
lua_rawgeti(L, -1, t->key); /* get rule's name again */