Browse Source

DLScript: Fix llvm compilation error.

`Ordered comparison between pointer and zero`
Andreas Haas 8 years ago
parent
commit
fe4336f165
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/dlscript/api_generator.cpp

+ 1 - 1
modules/dlscript/api_generator.cpp

@@ -112,7 +112,7 @@ List<ClassAPI> generate_c_api_classes() {
 			bool is_reference = false;
 			List<StringName> inheriters;
 			ClassDB::get_inheriters_from_class("Reference", &inheriters);
-			is_reference = inheriters.find(class_name) < 0;
+			is_reference = !!inheriters.find(class_name);
 			// @Unclear
 			class_api.memory_own = !class_api.is_singleton && is_reference;
 		}