From f99744a072d97c83f5a7da6c0626a38475c4fc44 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 10 Jul 2013 03:45:10 -0700 Subject: gras: ptree to pmc try max width fixed int long long has pretty bad swig wrapping, its easier to use fixed width int64s for now. --- lib/pmc_to_ptree.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/pmc_to_ptree.cpp b/lib/pmc_to_ptree.cpp index f94b5ce..89e5b1e 100644 --- a/lib/pmc_to_ptree.cpp +++ b/lib/pmc_to_ptree.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -32,7 +33,7 @@ PMCC gras::ptree_to_pmc(const ptree &value) if (value.size() == 0) { //can we cast to integer? - ptree_to_pmc_try(long long) + ptree_to_pmc_try(boost::int64_t) //can we cast to float? ptree_to_pmc_try(double) @@ -46,7 +47,7 @@ PMCC gras::ptree_to_pmc(const ptree &value) //array else { - ptree_to_pmc_tryv(long long); + ptree_to_pmc_tryv(boost::int64_t); ptree_to_pmc_tryv(double); ptree_to_pmc_tryv(std::complex); } -- cgit