summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/godot.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/godot.cpp b/src/godot.cpp
index ee4156b..5c2aaa6 100644
--- a/src/godot.cpp
+++ b/src/godot.cpp
@@ -271,7 +271,12 @@ GDExtensionBool GDExtensionBinding::init(GDExtensionInterfaceGetProcAddress p_ge
} else if (internal::godot_version.minor != GODOT_VERSION_MINOR) {
compatible = internal::godot_version.minor > GODOT_VERSION_MINOR;
} else {
+#if GODOT_VERSION_PATCH > 0
compatible = internal::godot_version.patch >= GODOT_VERSION_PATCH;
+#else
+ // Prevent -Wtype-limits warning due to unsigned comparison.
+ compatible = true;
+#endif
}
if (!compatible) {
// We need to use snprintf() here because vformat() uses Variant, and we haven't loaded