From dd8be359226c59b4a7008f32c3c0958167a0d125 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Sep 2017 11:09:27 +0530 Subject: [PATCH] ... --- kitty/gl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/gl.h b/kitty/gl.h index 223efb5a8..f68f891b0 100644 --- a/kitty/gl.h +++ b/kitty/gl.h @@ -16,7 +16,7 @@ #define STRINGIFY(x) #x #define METH(name, argtype) {STRINGIFY(gl##name), (PyCFunction)name, argtype, NULL}, -static int _enable_error_checking = 1; +static bool _enable_error_checking = 1; #ifndef GL_STACK_UNDERFLOW #define GL_STACK_UNDERFLOW 0x0504 @@ -51,7 +51,7 @@ static int _enable_error_checking = 1; static PyObject* enable_automatic_error_checking(PyObject UNUSED *self, PyObject *val) { - _enable_error_checking = PyObject_IsTrue(val) ? 1 : 0; + _enable_error_checking = PyObject_IsTrue(val) ? true : false; Py_RETURN_NONE; }