Truncate type flags for platform compatibility