summaryrefslogtreecommitdiff
path: root/modules/dlscript/api_generator.cpp
diff options
context:
space:
mode:
authorAndreas Haas <liu.gam3@gmail.com>2017-04-08 12:18:20 +0200
committerAndreas Haas <liu.gam3@gmail.com>2017-04-08 12:18:20 +0200
commitfe4336f165c9bfd9ac802ad3b6170a2a24176969 (patch)
tree34aada0b7a0b5c5803bb58359ce9649c3e8d0632 /modules/dlscript/api_generator.cpp
parent36f568903b1e91f7cf66efb81620652ca971c686 (diff)
DLScript: Fix llvm compilation error.
`Ordered comparison between pointer and zero`
Diffstat (limited to 'modules/dlscript/api_generator.cpp')
-rw-r--r--modules/dlscript/api_generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dlscript/api_generator.cpp b/modules/dlscript/api_generator.cpp
index c8e38ca9a3..56e0e45608 100644
--- a/modules/dlscript/api_generator.cpp
+++ b/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;
}