Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/mapnik_font_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <mapnik/font_engine_freetype.hpp>
//pybind11
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

namespace py = pybind11;

Expand Down
2 changes: 1 addition & 1 deletion src/mapnik_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void export_map(py::module const& m)
"<mapnik._mapnik.Featureset object at 0x23b0b0>\n"
">>> featureset.features\n"
">>> [<mapnik.Feature object at 0x3995630>]\n",
py::arg("layer idx"), py::arg("x"), py::arg("y")
py::arg("layer_idx"), py::arg("x"), py::arg("y")
)

.def("remove_all", &Map::remove_all,
Expand Down
2 changes: 1 addition & 1 deletion src/mapnik_value_converter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ struct type_caster<mapnik::value_holder>
{
PyObject *tmp = PyNumber_Long(source);
if (!tmp) return false;
value = PyLong_AsLongLong(tmp);
value = PyLong_AsLong(tmp);
Py_DecRef(tmp);
return !PyErr_Occurred();
}
Expand Down