Skip to content

Commit

Permalink
Fix implicit conversion warning (dotnet#48863)
Browse files Browse the repository at this point in the history
This change is released under the MIT license.

Signed-off-by: Zhenbo Li litimetal@gmail.com

<!--
Thank you for your Pull Request!

If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed.

Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number
-->

Co-authored-by: Endle <Endle@users.noreply.github.com>
  • Loading branch information
monojenkins and Endle committed Mar 1, 2021
1 parent 56b2fa9 commit e6cab3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/mini/local-propagation.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ mono_local_cprop (MonoCompile *cfg)
max = cfg->next_vreg;
defs = (MonoInst **)mono_mempool_alloc (cfg->mempool, sizeof (MonoInst*) * cfg->next_vreg);
def_index = (gint32 *)mono_mempool_alloc (cfg->mempool, sizeof (guint32) * cfg->next_vreg);
cfg->cbb = bb_opt = mono_mempool_alloc0 ((cfg)->mempool, sizeof (MonoBasicBlock));
cfg->cbb = bb_opt = (MonoBasicBlock *)mono_mempool_alloc0 ((cfg)->mempool, sizeof (MonoBasicBlock));

for (bb = cfg->bb_entry; bb; bb = bb->next_bb) {
MonoInst *ins;
Expand Down

0 comments on commit e6cab3d

Please sign in to comment.