diff options
author | Andreas Haas <liu.gam3@gmail.com> | 2017-04-08 12:18:20 +0200 |
---|---|---|
committer | Andreas Haas <liu.gam3@gmail.com> | 2017-04-08 12:18:20 +0200 |
commit | fe4336f165c9bfd9ac802ad3b6170a2a24176969 (patch) | |
tree | 34aada0b7a0b5c5803bb58359ce9649c3e8d0632 /modules/dlscript/api_generator.cpp | |
parent | 36f568903b1e91f7cf66efb81620652ca971c686 (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.cpp | 2 |
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; } |