Skip to content

Commit 68eea4f

Browse files
committed
fix #1190
1 parent b961089 commit 68eea4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dapper/SqlMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ internal static Action<IDbCommand, object> CreateParamInfoGenerator(Identity ide
24162416
il.Emit(OpCodes.Ldarg_1); // stack is now [untyped-param]
24172417
if (isStruct)
24182418
{
2419-
il.DeclareLocal(type.MakePointerType());
2419+
il.DeclareLocal(type.MakeByRefType()); // note: ref-local
24202420
il.Emit(OpCodes.Unbox, type); // stack is now [typed-param]
24212421
}
24222422
else

0 commit comments

Comments
 (0)