From 70b19336616e74bc8b0a94e3e380ff0197103c54 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 13 Mar 2017 13:30:00 -0400 Subject: [PATCH] SI_DeviceGBA: Store the device number as an int This prevents truncation when assigning to this member in the constructor. This isn't size-critical code, so opting for the more straightforward assignment is fine here. --- Source/Core/Core/HW/SI/SI_DeviceGBA.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/SI/SI_DeviceGBA.h b/Source/Core/Core/HW/SI/SI_DeviceGBA.h index d2c2da8e1b..877b25efc8 100644 --- a/Source/Core/Core/HW/SI/SI_DeviceGBA.h +++ b/Source/Core/Core/HW/SI/SI_DeviceGBA.h @@ -38,7 +38,7 @@ private: u64 time_cmd_sent; u64 last_time_slice; - u8 device_number; + int device_number; u8 cmd; bool booted; };