From affb9f40c549172b17d9ab181d0464fd818e0ebf Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 15 May 2016 23:55:06 +0200 Subject: [PATCH] quench conversion warnings on windows --- include/pybind11/pybind11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 302a8a09c..38bc5fc45 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -214,7 +214,7 @@ protected: rec->is_constructor = !strcmp(rec->name, "__init__") || !strcmp(rec->name, "__setstate__"); rec->has_args = false; rec->has_kwargs = false; - rec->nargs = args; + rec->nargs = (uint16_t) args; #if PY_MAJOR_VERSION < 3 if (rec->sibling && PyMethod_Check(rec->sibling.ptr()))