Skip to content

Commit 7b8b4ee

Browse files
committed
Use mapnik::value_xxx types in conversions
1 parent 92625eb commit 7b8b4ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/python_to_value.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ namespace mapnik {
4848
}
4949
else if (py::isinstance<py::bool_>(handle))
5050
{
51-
vars[key] = handle.cast<bool>();
51+
vars[key] = handle.cast<mapnik::value_bool>();
5252
}
5353
else if (py::isinstance<py::float_>(handle))
5454
{
55-
vars[key] = handle.cast<double>();
55+
vars[key] = handle.cast<mapnik::value_double>();
5656
}
5757
else if (py::isinstance<py::int_>(handle))
5858
{
59-
vars[key] = handle.cast<long long>();
59+
vars[key] = handle.cast<mapnik::value_integer>();
6060
}
6161
else
6262
{

0 commit comments

Comments
 (0)