Browse Source

ppython: fix compile error on clang 4

rdb 8 years ago
parent
commit
0493b07f45
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/directbase/ppython.cxx

+ 1 - 1
direct/src/directbase/ppython.cxx

@@ -98,7 +98,7 @@ int main(int argc, char *argv[]) {
 
 
   int sts = 0;
   int sts = 0;
   PyObject* m = PyImport_ImportModule(IMPORT_MODULE_STR);
   PyObject* m = PyImport_ImportModule(IMPORT_MODULE_STR);
-  if (m <= 0) {
+  if (m == 0) {
     PyErr_Print();
     PyErr_Print();
     sts = 1;
     sts = 1;
   }
   }