GCC 4.7.x finds that 1 << 31 is a signed integer, use the unsigned notation
* error: narrowing conversion of '-2147483618' from 'int' to 'uint32 {aka long unsigned int}'
inside { } is ill-formed in C++11
This commit is contained in:
@@ -14,7 +14,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
enum {
|
||||
B_SUPPORTS_OVERLAYS = 1 << 31 // part of display_mode.flags
|
||||
B_SUPPORTS_OVERLAYS = 1U << 31 // part of display_mode.flags
|
||||
};
|
||||
|
||||
enum {
|
||||
|
||||
Reference in New Issue
Block a user