DLScript: Fix llvm compilation error.

`Ordered comparison between pointer and zero`
This commit is contained in:
Andreas Haas 2017-04-08 12:18:20 +02:00
parent 36f568903b
commit fe4336f165
No known key found for this signature in database
GPG Key ID: B5FFAE1B65FBD2E1

View File

@ -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;
}