Skip to content

Conversation

@igaztanaga
Copy link
Member

Some users add -Wconversion flag to detect integer promotion bugs while using Boost.Interprocess, which uses Boost.Winapi. This is a simple patch that make Boost.Interprocess -Wconversion happy, just explicitly casting the result of MAKELANGID, which internally uses a promotion to int while dealing with shorts.

Some users add -Wconversion flag to detect integer promotion bugs while using Boost.Interprocess, which uses Boost.Winapi. This is a simple patch that make Boost.Interprocess -Wconversion happy, just explicitly casting the result of MAKELANGID, which internally uses a promotion to int while dealing with shorts.
@Lastique Lastique closed this in b5e6141 Oct 3, 2021
@Lastique
Copy link
Member

Lastique commented Oct 3, 2021

Thanks, I've committed a slightly modified version that also cleans up our custom definition of MAKELANGID_.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants