diff options
author | Jan Kotas <jkotas@microsoft.com> | 2019-05-14 19:07:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 19:07:53 -0700 |
commit | 718598334310f6ad331ba2893ee4557beffaa74c (patch) | |
tree | 7bc4830b29442e79be150b67dc0f67473e5ba681 /src/gcinfo | |
parent | 6a85ca560a7dfa109c6f17c0b76d93373dbd5a00 (diff) | |
download | coreclr-718598334310f6ad331ba2893ee4557beffaa74c.tar.gz coreclr-718598334310f6ad331ba2893ee4557beffaa74c.tar.bz2 coreclr-718598334310f6ad331ba2893ee4557beffaa74c.zip |
Fix issues reported by PREfast static analysis tool (#24577)
Diffstat (limited to 'src/gcinfo')
-rw-r--r-- | src/gcinfo/gcinfoencoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gcinfo/gcinfoencoder.cpp b/src/gcinfo/gcinfoencoder.cpp index 090c0895d6..bb989d6650 100644 --- a/src/gcinfo/gcinfoencoder.cpp +++ b/src/gcinfo/gcinfoencoder.cpp @@ -1802,7 +1802,7 @@ void GcInfoEncoder::Build() const size_t sizeofEncodedNumBitsPerPointer = BitStreamWriter::SizeofVarLengthUnsigned(numBitsPerPointer, POINTER_SIZE_ENCBASE); const size_t sizeofNoIndirection = m_NumCallSites * (numRegisters + numStackSlots); const size_t sizeofIndirection = sizeofEncodedNumBitsPerPointer // Encode the pointer sizes - + (m_NumCallSites * numBitsPerPointer) // Encoe the pointers + + (m_NumCallSites * numBitsPerPointer) // Encode the pointers + 7 // Up to 7 bits of alignment padding + sizeofSets; // Encode the actual live sets |