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:
Jérôme Duval
2013-04-26 21:17:33 +02:00
parent d762df1df1
commit f92b1f2eaf
+1 -1
View File
@@ -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 {