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

From: Hadriel Kaplan <hadriel.kaplan@xxxxxxxxxx>
Date: Mon, 10 Mar 2014 09:38:07 -0400
Sorry about that - I uploaded that commit before I made it a habit to turn on extra compiler warnings on my Mac OSX. :(

It's surprising, though, since the files which caused you and others issues are from a very-widely-used Lua library that's been around for years.  You'd think they'd have cleaned that stuff up.

-hadriel


On Mar 10, 2014, at 5:18 AM, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:

> 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;
>    }
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe