Ethereal-dev: Re: [Ethereal-dev] Problems when compiling with msvc packet-windows-common.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Thu, 19 Aug 2004 02:10:15 -0700
Anders Broman wrote:

packet-windows-common.c
packet-windows-common.c(1167) : warning C4244: '=' : conversion from
'unsigned _
_int64 ' to 'int ', possible loss of data

MSVC++ doesn't understand that 64_bit_int%10000000 fits in an "int", so I checked in a change to add a cast to suppress the warning.

packet-windows-common.c(1170) : error C2059: syntax error : 'bad suffix on
number'
packet-windows-common.c(1170) : error C2146: syntax error : missing ';'
before identifier 'L'
packet-windows-common.c(1170) : error C2065: 'L' : undeclared identifier

Is it something with : #define TIME_FIXUP_CONSTANT 11644473600ULL ?

Yes. I've checked in a change to fix that; see my responses to Olivier's mail about this.