From 0493b07f45a13ebab825cf8490ef3ee1d88a52c2 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 7 Oct 2017 12:24:28 +0200 Subject: [PATCH] ppython: fix compile error on clang 4 --- direct/src/directbase/ppython.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/directbase/ppython.cxx b/direct/src/directbase/ppython.cxx index 65f1272c8a..63ab21f3e9 100644 --- a/direct/src/directbase/ppython.cxx +++ b/direct/src/directbase/ppython.cxx @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) { int sts = 0; PyObject* m = PyImport_ImportModule(IMPORT_MODULE_STR); - if (m <= 0) { + if (m == 0) { PyErr_Print(); sts = 1; }