Wireshark mailing list archives
Re: guint64 is a 'long' on 32-bit MacOS?
From: Michael Tuexen <Michael.Tuexen () lurchi franken de>
Date: Thu, 1 Mar 2012 18:00:45 +0100
On Mar 1, 2012, at 5:23 PM, Jeff Morriss wrote:
The 10.5-x86 and 10.5-ppc MacOS buildbots currently fail to compile the current SVN with these warnings:packet-noe.c: In function 'decode_utf8': packet-noe.c:805: warning: integer constant is too large for 'long' type packet-noe.c:808: warning: integer constant is too large for 'long' type packet-noe.c:814: warning: integer constant is too large for 'long' type packet-noe.c:817: warning: integer constant is too large for 'long' type packet-noe.c:818: warning: integer constant is too large for 'long' typeBut the variables in question are guint64's (which should presumably be "long long"s on these 32-bit OS's, right?).
I guess that the problem is not the guint64 variable utf, but the constant 0xFFFFFFFFFF. Does the attached patch fix the problem?
Attachment:
patch
Description:
Ideas? ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- guint64 is a 'long' on 32-bit MacOS? Jeff Morriss (Mar 01)
- Re: guint64 is a 'long' on 32-bit MacOS? Michael Tuexen (Mar 01)
- Re: guint64 is a 'long' on 32-bit MacOS? Jeff Morriss (Mar 01)
- Re: guint64 is a 'long' on 32-bit MacOS? Michael Tuexen (Mar 01)