ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Fix for Windows build.

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Mon, 10 Mar 2014 09:18:39 +0000

diff --git a/epan/wslua/lrexlib_algo.h b/epan/wslua/lrexlib_algo.h

index 4aad145..ece7c8c 100644

--- a/epan/wslua/lrexlib_algo.h

+++ b/epan/wslua/lrexlib_algo.h

@@ -94,7 +94,7 @@ static int get_startoffset(lua_State *L, int stackpos, size_t

   if(startoffset > 0)

     startoffset--;

   else if(startoffset < 0) {

-    startoffset += len/ALG_CHARSIZE;

+    startoffset += (int)(len/ALG_CHARSIZE);

     if(startoffset < 0)

       startoffset = 0;

   }