From ccf92d4b0ac5089172ca66bb4a048d1ae9369b11 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Fri, 13 Mar 2020 01:09:04 -0500 Subject: [PATCH] fix check-structures-sanity compile on 64-bit windows --- plugins/devel/check-structures-sanity/validate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/devel/check-structures-sanity/validate.cpp b/plugins/devel/check-structures-sanity/validate.cpp index 63dc132f4..04ef8422c 100644 --- a/plugins/devel/check-structures-sanity/validate.cpp +++ b/plugins/devel/check-structures-sanity/validate.cpp @@ -159,7 +159,7 @@ const char *Checker::get_vtable_name(const QueueItem & item, const CheckedStruct #ifdef WIN32 #ifdef DFHACK64 void *base; - if (!RtlPcToFileHeader(info, &base)) + if (!RtlPcToFileHeader(const_cast(reinterpret_cast(info)), &base)) return nullptr; const char *typeinfo = reinterpret_cast(base) + reinterpret_cast(info)[3];