News for hackers. Stuff that matters.
Re:size_t-to-int vulnerability in Linux’s filesystem layer by titzer on Tuesday July 20, 2021 @12:32PM (#27895925)
In Virgil, casts are written "type.!(expr)". Casts between numbers check ranges and roundability (for float<->int conversion). Reinterpreting the bits is written "type.view(expr)" and ignores signs, looks at the raw float bits, etc.

edit: a cast will throw an exception if it fails, in case that was not clear from context.

There are no comments on this comment yet.