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. --- PMC | 2 +- grextras | 2 +- lib/pmc_to_ptree.cpp | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/PMC b/PMC index 4fd593b..c6f7c22 160000 --- a/PMC +++ b/PMC @@ -1 +1 @@ -Subproject commit 4fd593b1f84e6dee26b43d3a2752ed468dd4db11 +Subproject commit c6f7c224640ef441e9c6b1bf69eed0f5e0e228b1 diff --git a/grextras b/grextras index 4f7f437..c9ec4a8 160000 --- a/grextras +++ b/grextras @@ -1 +1 @@ -Subproject commit 4f7f4377c18cd0a9b615694ff979b1bae1230285 +Subproject commit c9ec4a82631b48961643a845c1efdb20b012daef 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