Hmm, how about
#define IEEE802154_CRC_XOROUT   0x0000FFFFUL

Then cast away any warnings you might get.  That *should* prevent the compiler 
from turning the xor operation into a 1's complement operation, and hopefully 
get rid of the warning.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:wireshark-dev-
> [EMAIL PROTECTED] On Behalf Of Jaap Keuter
> Sent: Tuesday, September 02, 2008 6:35 PM
> To: Developer support list for Wireshark
> Subject: Re: [Wireshark-dev] packet-ieee802154.c compilation error
> 
> Hi Didier,
> 
> Tried it just now, but sorry, still the same error.
> 
> Thanx,
> Jaap
> 
> didier wrote:
> > Le mardi 02 septembre 2008 à 17:28 -0400, Maynard, Chris a écrit :
> >> What about modifying the macro itself?
> >>
> >> #define ieee802154_crc_tvb(tvb, offset)
> >> ((guint16)(crc16_ccitt_tvb_seed(tvb, offset, IEEE802154_CRC_SEED) ^
> >> IEEE802154_CRC_XOROUT))
> > Maybe
> > #define IEEE802154_CRC_XOROUT   0xFFFFU
> >
> > Didier
> >
> 
> _______________________________________________
> Wireshark-dev mailing list
> [email protected]
> https://wireshark.org/mailman/listinfo/wireshark-dev
CONFIDENTIALITY NOTICE: The contents of this email are confidential
and for the exclusive use of the intended recipient. If you receive this
email in error, please delete it from your system immediately and 
notify us either by email, telephone or fax. You should not copy,
forward, or otherwise disclose the content of the email.

_______________________________________________
Wireshark-dev mailing list
[email protected]
https://wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to