[vlc-devel] [PATCH 17/22] vlc_arrays: DictHash output is always used as an int
Rémi Denis-Courmont
remi at remlab.net
Sun Aug 2 21:20:23 CEST 2015
Le dimanche 02 août 2015, 12:07:49 Filipe Cabecinhas a écrit :
> >> Not losing precision.
> >
> > What the heck does that even mean? Neither converting implicitly nor
> > casting explicitly to int (or any other signed type) can lose precision.
>
> How are you not losing precision? You had a 64-bit integer and are getting
> the bottom 32 bits.
Of course not. Conversion from an integer type to a *signed* integer type is
always exact in C. The number of bits of both types is irrelevant.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list