Skip to content

Commit

Permalink
Need to convert from uint instead of cast here to maintain consistenc…
Browse files Browse the repository at this point in the history
…y with mono_gchandle_new_weakref_internal. (dotnet#34153)

Looks like this was missed in: Unity-Technologies/mono@941a335

Co-authored-by: UnityAlex <UnityAlex@users.noreply.github.com>
  • Loading branch information
monojenkins and UnityAlex committed Mar 27, 2020
1 parent d6e3a0f commit 622d99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/metadata/boehm-gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ alloc_handle (HandleData *handles, MonoObject *obj, gboolean track)
MonoGCHandle
mono_gchandle_new_internal (MonoObject *obj, gboolean pinned)
{
return (MonoGCHandle)(size_t)alloc_handle (&gc_handles [pinned? HANDLE_PINNED: HANDLE_NORMAL], obj, FALSE);
return MONO_GC_HANDLE_FROM_UINT(alloc_handle (&gc_handles [pinned? HANDLE_PINNED: HANDLE_NORMAL], obj, FALSE));
}

/**
Expand Down

0 comments on commit 622d99d

Please sign in to comment.