I think it should be a cast to time_t, since that is the actual type in question?
On 2013-09-12, at 8:07 PM, jmayer@xxxxxxxxxxxxx wrote:
> http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=51978
>
> User: jmayer
> Date: 2013/09/12 01:07 PM
>
> Log:
> Make proto.c compile on my system (linux, 32 bit)
>
> [-Werror,-Wshorten-64-to-32]
> time_stamp.secs = (todsecs / 1000000) - TOD_BASETIME;
> ~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
> /home/jmayer/work/wireshark/svn/trunk/epan/proto.c:1613:44: error: implicit conversion
> loses integer precision: 'unsigned long long' to 'time_t' (aka 'long')
> [-Werror,-Wshorten-64-to-32]
> time_stamp.secs = (todsecs / 1000000) - TOD_BASETIME;
> ~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
>
> Directory: /trunk/epan/
> Changes Path Action
> +2 -2 proto.c Modified
>
> ___________________________________________________________________________
> Sent via: Wireshark-commits mailing list <wireshark-commits@xxxxxxxxxxxxx>
> Archives: http://www.wireshark.org/lists/wireshark-commits
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-commits
> mailto:wireshark-commits-request@xxxxxxxxxxxxx?subject=unsubscribe