Skip to content

Commit

Permalink
Merge pull request #109 from p-x9/fix/func-meta-numparams-mask
Browse files Browse the repository at this point in the history
Fix bit mask of numberArguments
  • Loading branch information
wickwirew authored Nov 17, 2023
2 parents dad0313 + 60df2ef commit 73c9021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Runtime/Metadata/FuntionMetadata.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 73c9021

Please sign in to comment.