From 7284a77cd35c81947a9ce3c8f95ab4fef4952ae6 Mon Sep 17 00:00:00 2001 From: Matthew Skolaut Date: Mon, 20 Jun 2016 21:07:24 -0500 Subject: [PATCH] fix casting warning in python createButton binding --- modules/python/src2/cv2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index eb0d4c998c..537e85422b 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -1303,7 +1303,7 @@ static PyObject *pycvCreateButton(PyObject*, PyObject *args, PyObject *kw) PyObject *userdata = NULL; char* button_name; int button_type = 0; - int initial_button_state = 0; + bool initial_button_state = false; if (!PyArg_ParseTupleAndKeywords(args, kw, "sO|Oii", (char**)keywords, &button_name, &on_change, &userdata, &button_type, &initial_button_state)) return NULL;