diff options
| author | Andreas Haas | 2017-04-08 12:18:20 +0200 |
|---|---|---|
| committer | Andreas Haas | 2017-04-08 12:18:20 +0200 |
| commit | fe4336f165c9bfd9ac802ad3b6170a2a24176969 (patch) | |
| tree | 34aada0b7a0b5c5803bb58359ce9649c3e8d0632 | |
| parent | 36f568903b1e91f7cf66efb81620652ca971c686 (diff) | |
| download | godot-fe4336f165c9bfd9ac802ad3b6170a2a24176969.tar.gz godot-fe4336f165c9bfd9ac802ad3b6170a2a24176969.tar.zst godot-fe4336f165c9bfd9ac802ad3b6170a2a24176969.zip | |
DLScript: Fix llvm compilation error.
`Ordered comparison between pointer and zero`
| -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 c8e38ca9a..56e0e4560 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; } |
