aboutsummaryrefslogtreecommitdiff
path: root/libxsd-frontend/xml.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-17 14:05:22 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-02-25 13:39:56 +0300
commite37f54594630520a71ec139e735fa819de4b852a (patch)
tree12f89bcd2da3bca8f521347f613425b3f300e4a3 /libxsd-frontend/xml.hxx
parent949a9f572341b6cd07690f0b78b1b1941d320055 (diff)
Add support for VC
Diffstat (limited to 'libxsd-frontend/xml.hxx')
-rw-r--r--libxsd-frontend/xml.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/libxsd-frontend/xml.hxx b/libxsd-frontend/xml.hxx
index bc8f36b..df9576a 100644
--- a/libxsd-frontend/xml.hxx
+++ b/libxsd-frontend/xml.hxx
@@ -6,6 +6,7 @@
#include <vector>
#include <ostream>
+#include <cstdint> // uintptr_t
#include <xercesc/dom/DOM.hpp>
#include <xercesc/util/XMLString.hpp>
@@ -220,7 +221,9 @@ namespace XSDFrontend
{
//@@ cache
//
- return reinterpret_cast<unsigned long> (e_->getUserData (line_key));
+ return static_cast<unsigned long> (
+ reinterpret_cast<std::uintptr_t> (
+ e_->getUserData (line_key)));
}
unsigned long
@@ -228,7 +231,9 @@ namespace XSDFrontend
{
//@@ cache
//
- return reinterpret_cast<unsigned long> (e_->getUserData (column_key));
+ return static_cast<unsigned long> (
+ reinterpret_cast<std::uintptr_t> (
+ e_->getUserData (column_key)));
}
public: