Skip to content

Commit

Permalink
Reverted back to typeof(void) as return type
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Jan 16, 2017
1 parent c40f67e commit b9cab30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Harmony/Platform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static long GetMemory(int size)
var moduleBuilder = assemblyBuilder.DefineDynamicModule("HarmonyMemoryModule" + counter);
var typeBuilder = moduleBuilder.DefineType("HarmonyMemoryType" + counter);
var methodName = "HarmonyMemoryMethod" + counter;
var methodBuilder = typeBuilder.DefineMethod(methodName, MethodAttributes.Public | MethodAttributes.Static, typeof(int), new Type[0]);
var methodBuilder = typeBuilder.DefineMethod(methodName, MethodAttributes.Public | MethodAttributes.Static, typeof(void), new Type[0]);
var il = methodBuilder.GetILGenerator();
// lets try to be clever enough that no optimization reduces our JIT code size
il.DeclareLocal(typeof(int));
Expand Down

0 comments on commit b9cab30

Please sign in to comment.