summaryrefslogtreecommitdiff
path: root/src/gcinfo
diff options
context:
space:
mode:
authorSergey Andreenko <seandree@microsoft.com>2018-06-14 18:32:41 -0700
committerGitHub <noreply@github.com>2018-06-14 18:32:41 -0700
commit1c8c96ec2bb52368124928648d7557ac85ff9c40 (patch)
treeb3e231f27232ea8532f1914f23f982914df23836 /src/gcinfo
parent793daddd90caa014dc2dacebd6b73035ae57bae5 (diff)
downloadcoreclr-1c8c96ec2bb52368124928648d7557ac85ff9c40.tar.gz
coreclr-1c8c96ec2bb52368124928648d7557ac85ff9c40.tar.bz2
coreclr-1c8c96ec2bb52368124928648d7557ac85ff9c40.zip
clean up list of disabled warnings. (#18318)
* delete warnings that do not longer exist For example C4171 was deleted after VS 6.0 (https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-6.0/aa233011(v=vs.60)) * delete C4206 fromm the list because its default value is 4, so this line is useless. * reenable warning as error. * enable warning C4430 and fix places that trigger it. * fix C4334 * format the list * fix ssize_t
Diffstat (limited to 'src/gcinfo')
-rw-r--r--src/gcinfo/gcinfoencoder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gcinfo/gcinfoencoder.cpp b/src/gcinfo/gcinfoencoder.cpp
index 8b75166fd7..01a3a74539 100644
--- a/src/gcinfo/gcinfoencoder.cpp
+++ b/src/gcinfo/gcinfoencoder.cpp
@@ -2661,7 +2661,7 @@ int BitStreamWriter::SizeofVarLengthUnsigned( size_t n, UINT32 base)
// If a value gets so big we are probably doing something wrong
_ASSERTE(((INT32)(UINT32)n) >= 0);
_ASSERTE((base > 0) && (base < BITS_PER_SIZE_T));
- size_t numEncodings = 1 << base;
+ size_t numEncodings = size_t{ 1 } << base;
int bitsUsed;
for(bitsUsed = base+1; ; bitsUsed += base+1)
{
@@ -2682,7 +2682,7 @@ int BitStreamWriter::EncodeVarLengthUnsigned( size_t n, UINT32 base)
// If a value gets so big we are probably doing something wrong
_ASSERTE(((INT32)(UINT32)n) >= 0);
_ASSERTE((base > 0) && (base < BITS_PER_SIZE_T));
- size_t numEncodings = 1 << base;
+ size_t numEncodings = size_t{ 1 } << base;
int bitsUsed;
for(bitsUsed = base+1; ; bitsUsed += base+1)
{
@@ -2704,7 +2704,7 @@ int BitStreamWriter::EncodeVarLengthUnsigned( size_t n, UINT32 base)
int BitStreamWriter::EncodeVarLengthSigned( SSIZE_T n, UINT32 base )
{
_ASSERTE((base > 0) && (base < BITS_PER_SIZE_T));
- size_t numEncodings = 1 << base;
+ size_t numEncodings = size_t{ 1 } << base;
for(int bitsUsed = base+1; ; bitsUsed += base+1)
{
size_t currentChunk = ((size_t) n) & (numEncodings-1);