Hacker News new | ask | show | jobs
by fanf2 1809 days ago
In C if you pass a pointer to double to a function expecting a pointer to int, that is a constraint violation (see 6.5.16.1 in the standard), and the compiler is required to emit a diagnostic.