From 8778421ebbb72f6c083a45a79f128e6b6f53a778 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 9 Sep 2020 16:11:21 +0200 Subject: [PATCH] Quick code style fix --- src/ZoneLoading/Zone/Stream/Impl/XBlockInputStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZoneLoading/Zone/Stream/Impl/XBlockInputStream.cpp b/src/ZoneLoading/Zone/Stream/Impl/XBlockInputStream.cpp index 438dc272..aa9588dd 100644 --- a/src/ZoneLoading/Zone/Stream/Impl/XBlockInputStream.cpp +++ b/src/ZoneLoading/Zone/Stream/Impl/XBlockInputStream.cpp @@ -114,7 +114,7 @@ void XBlockInputStream::LoadDataInBlock(void* dst, const size_t size) throw OutOfBlockBoundsException(block); } - if (reinterpret_cast(dst) + size > block->m_buffer + block->m_buffer_size) + if (static_cast(dst) + size > block->m_buffer + block->m_buffer_size) { throw BlockOverflowException(block); }