Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdafe424

Browse files
forkidsyme
authored andcommitted
Use defaultArg (#2987)
1 parent0df786b commitdafe424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/absil/ilwrite.fs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2780,8 +2780,8 @@ let rec GenTypeDefPass3 enc cenv (td:ILTypeDef) =
27802780
if Option.isSome layout.Pack|| Option.isSome layout.Sizethen
27812781
AddUnsharedRow cenv TableNames.ClassLayout
27822782
(UnsharedRow
2783-
[| UShort(match layout.Packwith None->uint160x0| Some p-> p)
2784-
ULong(match layout.Sizewith None->0x0| Some p-> p)
2783+
[| UShort(defaultArg layout.Pack(uint160x0))
2784+
ULong(defaultArg layout.Size0x0)
27852785
SimpleIndex(TableNames.TypeDef, tidx)|])|> ignore
27862786

27872787
td.SecurityDecls.AsList|> GenSecurityDeclsPass3 cenv(hds_TypeDef,tidx)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp