From 60df2efa76f5d0796aeee67934399dd9e989c706 Mon Sep 17 00:00:00 2001 From: p-x9 <50244599+p-x9@users.noreply.github.com> Date: Fri, 17 Nov 2023 02:01:34 +0900 Subject: [PATCH] fix bit mask of numberArguments --- Sources/Runtime/Metadata/FuntionMetadata.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Runtime/Metadata/FuntionMetadata.swift b/Sources/Runtime/Metadata/FuntionMetadata.swift index 4c84b29..8d98193 100644 --- a/Sources/Runtime/Metadata/FuntionMetadata.swift +++ b/Sources/Runtime/Metadata/FuntionMetadata.swift @@ -43,7 +43,7 @@ struct FunctionMetadata: MetadataType { } private func numberArguments() -> Int { - return pointer.pointee.flags & 0x00FFFFFF + return pointer.pointee.flags & 0x0000FFFF } private func `throws`() -> Bool {