On Wednesday, 7 August 2019 10:19:01 PDT Linus Torvalds wrote: > Again, truncation of long to int isn't undefined behavior or overflow. > It's just a value truncation.
Strictly speaking, it's defined only if the result fits. Otherwise, the C standard says it's implementation defined what happens. On all modern machines, it just truncates, no warning. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel System Software Products _______________________________________________ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface