mailing list archives
Should existing use of 'LL' and 'ULL' when specifying a constant be fixed ?
From: Bill Meier <wmeier () newsguy com>
Date: Tue, 17 Dec 2013 11:52:18 -0500
When specifying an integral constant that doesn't fit in 32 bits, don't
use "LL" at the end of the constant - not all compilers use "LL" for
that. Instead, put the constant in a call to the "G_GINT64_CONSTANT()"
I note that in current SVN there are a number of cases where ULL (or LL)
e.g.: packet-9p.c:#define _9P_GETATTR_MODE 0x00000001ULL
Should these be fixed ? (or is the README outdated ?)
If they should be fixed:
It appears that G_GUINT64_CONSTANT can be used (since we require
GLib 2.16 and based upon an EMail from a while back it seems that
GLib 2.10 & newer define G_GUINT64_CONSTANT).
So: I would update README.developer and make the
If the README is outdated, I would remove the statement from the README.
Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org>
mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
- Should existing use of 'LL' and 'ULL' when specifying a constant be fixed ? Bill Meier (Dec 17)