Large negative pressures

Thiago Macieira thiago at macieira.org
Fri Aug 9 17:24:13 PDT 2019


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





More information about the subsurface mailing list