This commit is contained in:
profan 2026-06-06 23:37:43 +01:00
parent c8fb614c51
commit b654e46f69
1 changed files with 1 additions and 1 deletions

View File

@ -767,7 +767,7 @@ internal static class Compiler
{ {
// write, previous result will be at loc 0 if all is well // write, previous result will be at loc 0 if all is well
methodGenerator.Emit(OpCodes.Ldarg_0); // Span<T> methodGenerator.Emit(OpCodes.Ldarg_0); // Span<T>
methodGenerator.Emit(OpCodes.Ldloc_0); // result of call methodGenerator.Emit(OpCodes.Ldloc_0); // result
methodGenerator.Emit(OpCodes.Ldc_I4, offset); // offset methodGenerator.Emit(OpCodes.Ldc_I4, offset); // offset
methodGenerator.Emit(OpCodes.Call, typeof(Evaluation).GetMethod(nameof(Evaluation.Write))!.MakeGenericMethod(typeof(T))); methodGenerator.Emit(OpCodes.Call, typeof(Evaluation).GetMethod(nameof(Evaluation.Write))!.MakeGenericMethod(typeof(T)));
} }