From ebb0a161c33a5f5f11d510f52233935a77893bc3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 5 Apr 2020 09:03:36 -0400 Subject: [PATCH] HMDL_RT: Remove unnecessary pointer cast The MemoryReader class already accepts const qualified data, so there's no need to cast away const. --- hecl/lib/Runtime/HMDL_RT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hecl/lib/Runtime/HMDL_RT.cpp b/hecl/lib/Runtime/HMDL_RT.cpp index 5695a03d1..c9d4cd1b8 100644 --- a/hecl/lib/Runtime/HMDL_RT.cpp +++ b/hecl/lib/Runtime/HMDL_RT.cpp @@ -11,7 +11,7 @@ static logvisor::Module HMDL_Log("HMDL"); HMDLData::HMDLData(boo::IGraphicsDataFactory::Context& ctx, const void* metaData, const void* vbo, const void* ibo) { HMDLMeta meta; { - athena::io::MemoryReader r((atUint8*)metaData, HECL_HMDL_META_SZ); + athena::io::MemoryReader r(metaData, HECL_HMDL_META_SZ); meta.read(r); } if (meta.magic != 'TACO')