From dc234999ac2ceaa9e98730d0fd4f10b9ac5c7997 Mon Sep 17 00:00:00 2001 From: doug1234 Date: Mon, 8 Jun 2020 23:07:20 -0400 Subject: [PATCH] Fix a couple warnings. --- TemplePlus/python/python_object.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TemplePlus/python/python_object.cpp b/TemplePlus/python/python_object.cpp index 845ee6a81..a7f4fdde3 100644 --- a/TemplePlus/python/python_object.cpp +++ b/TemplePlus/python/python_object.cpp @@ -1464,7 +1464,7 @@ static PyObject* PyObjHandle_ConditionsGet(PyObject* obj, PyObject* args) { PyTuple_SET_ITEM(tuple, 0, cname); if (node->condStruct->numArgs) { auto tupleArgs = PyTuple_New(node->condStruct->numArgs); - for (auto i = 0; i < node->condStruct->numArgs; i++) + for (unsigned int i = 0; i < node->condStruct->numArgs; i++) { PyTuple_SET_ITEM(tupleArgs, i, PyInt_FromSize_t(node->args[i])); } @@ -2451,7 +2451,7 @@ static PyObject* GetCharacterClassesSet(Filter filter, PyObject* obj, PyObject* } auto result = PyTuple_New(classes.size()); - for (auto i = 0; i < classes.size(); i++) { + for (size_t i = 0; i < classes.size(); i++) { PyTuple_SET_ITEM(result, i, PyInt_FromLong(classes[i])); }