summaryrefslogtreecommitdiff
path: root/project2/common/variableConvert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/variableConvert.cpp')
-rw-r--r--project2/common/variableConvert.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/project2/common/variableConvert.cpp b/project2/common/variableConvert.cpp
index 8fd906f..69082de 100644
--- a/project2/common/variableConvert.cpp
+++ b/project2/common/variableConvert.cpp
@@ -173,13 +173,17 @@ VariableType::operator const unsigned char *() const
{
return reinterpret_cast<const unsigned char *>(boost::apply_visitor(ConvertVisitorCharStar(this), *this));
}
-VariableType::operator int32_t() const
+VariableType::operator int() const
{
- return boost::apply_visitor(ConvertVisitor<int32_t>(this), *this);
+ return boost::apply_visitor(ConvertVisitor<int>(this), *this);
}
-VariableType::operator int64_t() const
+VariableType::operator long int() const
{
- return boost::apply_visitor(ConvertVisitor<int64_t>(this), *this);
+ return boost::apply_visitor(ConvertVisitor<long int>(this), *this);
+}
+VariableType::operator long long int() const
+{
+ return boost::apply_visitor(ConvertVisitor<long long int>(this), *this);
}
VariableType::operator double() const
{