diff options
author | Egor Chesakov <Egor.Chesakov@microsoft.com> | 2018-02-09 10:18:50 -0800 |
---|---|---|
committer | Egor Chesakov <Egor.Chesakov@microsoft.com> | 2018-02-26 15:38:18 -0800 |
commit | 6e095aaf6ee37c8e6c94ac2e6ea2ae6b3b876d5f (patch) | |
tree | 8b01400894728f3d46ee31ed7380e7bb2abd47cd /src/vm/array.cpp | |
parent | 007e08ec2ae2c86c11f90218224be2e37adaa572 (diff) | |
download | coreclr-6e095aaf6ee37c8e6c94ac2e6ea2ae6b3b876d5f.tar.gz coreclr-6e095aaf6ee37c8e6c94ac2e6ea2ae6b3b876d5f.tar.bz2 coreclr-6e095aaf6ee37c8e6c94ac2e6ea2ae6b3b876d5f.zip |
Replace sizeof(void*)-like expressions with TARGET_POINTER_SIZE macro
Diffstat (limited to 'src/vm/array.cpp')
-rw-r--r-- | src/vm/array.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/array.cpp b/src/vm/array.cpp index 08a86a39d7..61b81a0056 100644 --- a/src/vm/array.cpp +++ b/src/vm/array.cpp @@ -704,9 +704,9 @@ MethodTable* Module::CreateArrayMethodTable(TypeHandle elemTypeHnd, CorElementTy - ObjSizeOf(Object) - currentOffset; } - _ASSERTE(!"Module::CreateArrayMethodTable() - unaligned GC info" || IS_ALIGNED(skip, sizeof(size_t))); + _ASSERTE(!"Module::CreateArrayMethodTable() - unaligned GC info" || IS_ALIGNED(skip, TARGET_POINTER_SIZE)); - unsigned short NumPtrs = (unsigned short) (numPtrsInBytes / sizeof(void*)); + unsigned short NumPtrs = (unsigned short) (numPtrsInBytes / TARGET_POINTER_SIZE); if(skip > MAX_SIZE_FOR_VALUECLASS_IN_ARRAY || numPtrsInBytes > MAX_PTRS_FOR_VALUECLASSS_IN_ARRAY) { StackSString ssElemName; elemTypeHnd.GetName(ssElemName); |