Skip to content

Instantly share code, notes, and snippets.

@lewurm

lewurm/foo.patch Secret

Created May 20, 2019 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lewurm/6de007036b770ce0bdea4f3ae5c42558 to your computer and use it in GitHub Desktop.
Save lewurm/6de007036b770ce0bdea4f3ae5c42558 to your computer and use it in GitHub Desktop.
--- a/mono/mini/mini-arm.c
+++ b/mono/mini/mini-arm.c
@@ -2374,7 +2374,7 @@ mono_arch_get_llvm_call_info (MonoCompile *cfg, MonoMethodSignature *sig)
lainfo->nslots = ALIGN_TO (ainfo->struct_size, 8) / 8;
lainfo->esize = 8;
} else {
- lainfo->nslots = ainfo->struct_size / sizeof (target_mgreg_t);
+ lainfo->nslots = ALIGN_TO (ainfo->struct_size, sizeof (target_mgreg_t)) / sizeof (target_mgreg_t);
lainfo->esize = 4;
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment