From 251790f14445a0ef7e4cd3e92353e015c40ec5c7 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Sun, 31 Aug 2014 12:04:02 -0600 Subject: [PATCH] Fix some MSVC warnings --- include/chaiscript/dispatchkit/any.hpp | 2 ++ include/chaiscript/language/chaiscript_parser.hpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/chaiscript/dispatchkit/any.hpp b/include/chaiscript/dispatchkit/any.hpp index c074898..ce76175 100644 --- a/include/chaiscript/dispatchkit/any.hpp +++ b/include/chaiscript/dispatchkit/any.hpp @@ -49,6 +49,8 @@ namespace chaiscript { { } + Data &operator=(const Data &) = delete; + virtual ~Data() {} virtual void *data() = 0; const std::type_info &type() const diff --git a/include/chaiscript/language/chaiscript_parser.hpp b/include/chaiscript/language/chaiscript_parser.hpp index 6efd8d0..e50a5d0 100644 --- a/include/chaiscript/language/chaiscript_parser.hpp +++ b/include/chaiscript/language/chaiscript_parser.hpp @@ -1127,7 +1127,7 @@ namespace chaiscript } retval = true; m_input_pos = tmp; - m_col += len; + m_col += static_cast(len); } return retval; @@ -1175,7 +1175,7 @@ namespace chaiscript } retval = true; m_input_pos = tmp; - m_col += len; + m_col += static_cast(len); } return retval;