From 23c329a00d65e29ea16fd08037d99c6fdc92b188 Mon Sep 17 00:00:00 2001 From: Sam Deane Date: Wed, 18 Dec 2024 13:08:58 +0000 Subject: [PATCH] Fix initialisation level cast. (#631) --- Sources/SwiftGodot/EntryPoint.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftGodot/EntryPoint.swift b/Sources/SwiftGodot/EntryPoint.swift index 9681cb299..49f6eb5f8 100644 --- a/Sources/SwiftGodot/EntryPoint.swift +++ b/Sources/SwiftGodot/EntryPoint.swift @@ -440,7 +440,7 @@ public func initializeSwiftModule ( let initialization = UnsafeMutablePointer (extensionPtr) initialization.pointee.deinitialize = extension_deinitialize initialization.pointee.initialize = extension_initialize - initialization.pointee.minimum_initialization_level = GDExtensionInitialization(minimumInitializationLevel.rawValue) + initialization.pointee.minimum_initialization_level = GDExtensionInitializationLevel(UInt32(minimumInitializationLevel.rawValue)) initialization.pointee.userdata = UnsafeMutableRawPointer(libraryPtr) }