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.