On Sun, 11 Feb 2018 20:01:25 -0800, Behdad Esfahbod said: >On Feb 11, 2018 7:53 PM, "Alexei Podtelezhnikov" <apodt...@gmail.com> wrote: > >>>> >>>> (void *)(((char *)0) + (x)) >>>> > >Wow! Very cool! > > >I'm fairly sure that's undefined in C standard as well.
Indeed. clang warns: warning: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic] Cheers, -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel