Re:Show HN: MassDNS – A high-performance DNS stub resolver in C
by audidude on Saturday June 25, 2016 @11:37PM
(#11979284)
Sure, but in this case it was signed to unsigned promotion.
Re:Show HN: MassDNS – A high-performance DNS stub resolver in C
by blechschmidt on Saturday June 25, 2016 @11:43PM
(#11979294)
Why should that matter in this case? The worst case would have been the output of a wrong value and it was some commented out debug output which I have used in a very specific case.
If compilers did not do promotion, they would be very obviously not compliant with the C standard and unable to compile correctly most existing code, so I'm willing to bet that is something you can rely on. It's defined by the standard and widely used.