diff options
author | Egor Chesakov <Egor.Chesakov@microsoft.com> | 2018-08-20 17:08:18 -0700 |
---|---|---|
committer | Egor Chesakov <Egor.Chesakov@microsoft.com> | 2018-08-21 10:56:36 -0700 |
commit | de7a416d55f309c36fd883e94d3263d60dc86e8c (patch) | |
tree | 6b87df765a8d2d6e47910c819eb02a06787fa9df /src/jit/compilerbitsettraits.hpp | |
parent | 5b844783ae804bafc3dac2fe9c1ab39784bab44e (diff) | |
download | coreclr-de7a416d55f309c36fd883e94d3263d60dc86e8c.tar.gz coreclr-de7a416d55f309c36fd883e94d3263d60dc86e8c.tar.bz2 coreclr-de7a416d55f309c36fd883e94d3263d60dc86e8c.zip |
Cleanup unnecessary casts in roundUp
Diffstat (limited to 'src/jit/compilerbitsettraits.hpp')
-rw-r--r-- | src/jit/compilerbitsettraits.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jit/compilerbitsettraits.hpp b/src/jit/compilerbitsettraits.hpp index e6c6b1326b..79f7b5ee53 100644 --- a/src/jit/compilerbitsettraits.hpp +++ b/src/jit/compilerbitsettraits.hpp @@ -78,7 +78,7 @@ unsigned AllVarBitSetTraits::GetSize(Compiler* comp) // static unsigned AllVarBitSetTraits::GetArrSize(Compiler* comp, unsigned elemSize) { - return unsigned(roundUp(GetSize(comp), elemSize)); + return roundUp(GetSize(comp), elemSize); } // static @@ -163,7 +163,7 @@ unsigned BitVecTraits::GetArrSize(BitVecTraits* b, unsigned elemSize) { assert(elemSize == sizeof(size_t)); unsigned elemBits = 8 * elemSize; - return (unsigned)roundUp(b->size, elemBits) / elemBits; + return roundUp(b->size, elemBits) / elemBits; } // static |