[vlc-devel] [vlc-commits] sout:sap: the sa_family is a short unsigned integer

Rémi Denis-Courmont remi at remlab.net
Wed Jul 11 18:26:53 CEST 2018


Le keskiviikkona 11. heinäkuuta 2018, 19.12.16 EEST Steve Lhomme a écrit :
> On 2018-07-11 17:53, Rémi Denis-Courmont wrote:
> > Le keskiviikkona 11. heinäkuuta 2018, 16.35.32 EEST Steve Lhomme a écrit :
> >> vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul 11
> >> 15:32:13 2018 +0200| [fcf363057f0f7a22bc2086e1b3f1b69aec667ac7] |
> >> committer: Steve Lhomme
> >> 
> >> sout:sap: the sa_family is a short unsigned integer
> > 
> > sa_family depends on the OS.
> 
> OK, I found some cygwin headers that have 16 bits for this and some 8 bits.
> 
> > Implicit integer promotions made sure that the code was working in all
> > real
> > life cases, but this patch not so much.
> 
> I don't understand this "implicit integer promotion".

I mean the "default argument promotion" subset of "integer promotion".
This is defined in ISO C and I would rather not hazard an half-baked summary.

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list