Added some parenthesis and a cast to control order of operations. (#18983)
commit9a18f06a4578701921fb178bfe96d18a15b79a6f
authormonojenkins <jo.shields+jenkins@xamarin.com>
Sat, 22 Feb 2020 02:35:18 +0000 (21 21:35 -0500)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2020 02:35:18 +0000 (21 21:35 -0500)
tree10c80a0e0fa2de59af6b67e88f4dcdcb218e7e0a
parente40d66b6876b44e0d5de77877c559a29205a5aed
Added some parenthesis and a cast to control order of operations. (#18983)

This fixes https://github.com/mono/mono/issues/17140; intermittent incorrect results from GetTotalBytesAllocated for current thread. uint64_t and a pointer difference are not the same type/width on all architectures, so incorrect results can happen with out the parenthesis.

Co-authored-by: Nathan Ricci <naricc@microsoft.com>
mono/metadata/sgen-mono.c