From e743ac80d2757f9c6c8cfb84886586408fda7755 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 8 Oct 2017 12:38:12 +0200 Subject: [PATCH] TGCBlob: Fix brace style --- Source/Core/DiscIO/TGCBlob.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/DiscIO/TGCBlob.cpp b/Source/Core/DiscIO/TGCBlob.cpp index a7c6b37cce..6ee5fd5bb3 100644 --- a/Source/Core/DiscIO/TGCBlob.cpp +++ b/Source/Core/DiscIO/TGCBlob.cpp @@ -32,10 +32,14 @@ void SplitInterval(T split_point, Interval interval, Interval* out_1, Inte *out_1 = {0, 0}; if (interval.End() > split_point) + { *out_2 = {std::max(interval.start, split_point), std::min(interval.length, interval.End() - split_point)}; + } else + { *out_2 = {0, 0}; + } } u32 SubtractBE32(u32 minuend_be, u32 subtrahend_le) @@ -117,7 +121,9 @@ bool TGCFileReader::Read(u64 offset, u64 nbytes, u8* out_ptr) { if (!InternalRead(file_part.start - m_file_area_shift, file_part.length, out_ptr + (file_part.start - offset))) + { return false; + } } return true;