This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: constant that doesn't fit in 32bits in alpha.c


On 2012-06-11 16:23, Jay K wrote:
> Thank you. I like it. May I have another?
> 
> book2:gcc jay$ grep -i epoch vms*
> vmsdbgout.c:/* Difference in seconds between the VMS Epoch and the Unix Epoch */
> vmsdbgout.c:static const long long vms_epoch_offset = 3506716800ll;
> vmsdbgout.c:#define VMS_EPOCH_OFFSET 35067168000000000
> vmsdbgout.c:                        + VMS_EPOCH_OFFSET;
> 


In this case, long long is explicitly referenced in the surrounding code,
so I feel the safest change is just to add LL here.  I've cross-compiled
to alpha-dec-vms just to make sure, but I can't actually test this.


r~

Attachment: z
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]