From b1965061afffaa7c7290dfdfc53b5bbf19d73c01 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 3 May 2015 09:21:23 -0700 Subject: Fix MSVC warning --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 1e49b8f..7b19c2a 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -1129,7 +1129,7 @@ PUGI__NS_BEGIN // insert new marker uint32_t* marker = static_cast(result); - *marker = reinterpret_cast(marker) - reinterpret_cast(out_page); + *marker = static_cast(reinterpret_cast(marker) - reinterpret_cast(out_page)); out_page->compact_page_marker = marker; // since we don't reuse the page space until we reallocate it, we can just pretend that we freed the marker block -- cgit v1.2.3