summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Fifo.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-03-28 10:35:19 -0400
committerLioncash <mathew1800@gmail.com>2017-03-28 10:35:26 -0400
commit41fbc659bf485d4f2219e9d232e496529643f77c (patch)
treec3756664804577a3031ef4db5585c32349ae405f /Source/Core/VideoCommon/Fifo.cpp
parent85d74a506f6e4024ae1ffdf857d68ebed96fa4a9 (diff)
Fifo: Remove unnecessary integral casts
FIFO_SIZE is a u32, so %u can just be used instead.
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Fifo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp
index d3ce2cf7fb..377d7d5010 100644
--- a/Source/Core/VideoCommon/Fifo.cpp
+++ b/Source/Core/VideoCommon/Fifo.cpp
@@ -229,8 +229,7 @@ static void ReadDataFromFifo(u32 readPtr)
size_t existing_len = s_video_buffer_write_ptr - s_video_buffer_read_ptr;
if (len > (size_t)(FIFO_SIZE - existing_len))
{
- PanicAlert("FIFO out of bounds (existing %zu + new %zu > %lu)", existing_len, len,
- (unsigned long)FIFO_SIZE);
+ PanicAlert("FIFO out of bounds (existing %zu + new %zu > %u)", existing_len, len, FIFO_SIZE);
return;
}
memmove(s_video_buffer, s_video_buffer_read_ptr, existing_len);
@@ -267,8 +266,7 @@ static void ReadDataFromFifoOnCPU(u32 readPtr)
size_t existing_len = write_ptr - s_video_buffer_pp_read_ptr;
if (len > (size_t)(FIFO_SIZE - existing_len))
{
- PanicAlert("FIFO out of bounds (existing %zu + new %zu > %lu)", existing_len, len,
- (unsigned long)FIFO_SIZE);
+ PanicAlert("FIFO out of bounds (existing %zu + new %zu > %u)", existing_len, len, FIFO_SIZE);
return;
}
}