From ea5f5c4f00eee047c09fe3643d765d376adcc267 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 26 Jan 2014 23:45:49 +0100 Subject: [PATCH] Papu: fixed out-of-bounds array access due to too small data types Build failed on Win32 with GCC 4.8. --- plugins/papu/gb_apu/Gb_Apu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/papu/gb_apu/Gb_Apu.h b/plugins/papu/gb_apu/Gb_Apu.h index e2f940b94..e41bdc2c2 100644 --- a/plugins/papu/gb_apu/Gb_Apu.h +++ b/plugins/papu/gb_apu/Gb_Apu.h @@ -6,8 +6,8 @@ #ifndef GB_APU_H #define GB_APU_H -typedef long gb_time_t; // clock cycle count -typedef unsigned gb_addr_t; // 16-bit address +typedef int gb_time_t; // clock cycle count +typedef int gb_addr_t; // 16-bit address #include "Gb_Oscs.h"