1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 08:29:04 +00:00

removed some warnings for windows-platforms

This commit is contained in:
stoiko
2007-08-14 20:11:06 +00:00
parent fc6f1d49ad
commit 396ee9bc32
2 changed files with 6 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ static int get_startoffset(lua_State *L, int stackpos, size_t len)
if(startoffset > 0)
startoffset--;
else if(startoffset < 0) {
startoffset += len;
startoffset += (int) len;
if(startoffset < 0)
startoffset = 0;
}