auto-detect integer types