diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/virtualization/bochs/bochs_fix_narrowing_conv_warning.patch')
-rw-r--r-- | nixpkgs/pkgs/applications/virtualization/bochs/bochs_fix_narrowing_conv_warning.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/virtualization/bochs/bochs_fix_narrowing_conv_warning.patch b/nixpkgs/pkgs/applications/virtualization/bochs/bochs_fix_narrowing_conv_warning.patch new file mode 100644 index 000000000000..167dd65d05b3 --- /dev/null +++ b/nixpkgs/pkgs/applications/virtualization/bochs/bochs_fix_narrowing_conv_warning.patch @@ -0,0 +1,29 @@ +------------------------------------------------------------------------ +r13882 | vruppert | 2020-06-09 09:30:01 +0200 (Tue, 09 Jun 2020) | 2 lines + +Compilation fix for MSYS2 gcc 10.1.0 (narrowing conversion). + + +Index: iodev/display/voodoo_data.h +=================================================================== +--- a/iodev/display/voodoo_data.h (revision 13881) ++++ b/iodev/display/voodoo_data.h (revision 13882) +@@ -1837,11 +1837,11 @@ + + /* fifo content defines */ + #define FIFO_TYPES (7 << 29) +-#define FIFO_WR_REG (1 << 29) +-#define FIFO_WR_TEX (2 << 29) +-#define FIFO_WR_FBI_32 (3 << 29) +-#define FIFO_WR_FBI_16L (4 << 29) +-#define FIFO_WR_FBI_16H (5 << 29) ++#define FIFO_WR_REG (1U << 29) ++#define FIFO_WR_TEX (2U << 29) ++#define FIFO_WR_FBI_32 (3U << 29) ++#define FIFO_WR_FBI_16L (4U << 29) ++#define FIFO_WR_FBI_16H (5U << 29) + + BX_CPP_INLINE void fifo_reset(fifo_state *f) + { + +------------------------------------------------------------------------ |