Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Balykov <g.balykov@samsung.com>2021-06-10 02:28:45 +0300
committerGitHub <noreply@github.com>2021-06-10 02:28:45 +0300
commitf6c52b913b2449297c54f9ab4802812d6c3bf7eb (patch)
tree2f0ad14abb0f32c2c3411af7d954a11067ecac4e /src/coreclr/ToolBox
parent626ceb76db44ff3fa908c732b3f97322b406cdce (diff)
Fix gcc armel/arm64 build (#53220)
* Fix gcc armel build Mostly signed/unsigned comparisons, etc. * Fix gcc arm64 build
Diffstat (limited to 'src/coreclr/ToolBox')
-rw-r--r--src/coreclr/ToolBox/superpmi/superpmi-shared/lightweightmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coreclr/ToolBox/superpmi/superpmi-shared/lightweightmap.h b/src/coreclr/ToolBox/superpmi/superpmi-shared/lightweightmap.h
index dee5d760e30..e696f469d17 100644
--- a/src/coreclr/ToolBox/superpmi/superpmi-shared/lightweightmap.h
+++ b/src/coreclr/ToolBox/superpmi/superpmi-shared/lightweightmap.h
@@ -319,7 +319,7 @@ public:
// If we have RTTI, we can make this assert report the correct type. No RTTI, though, when
// built with .NET Core, especially when built against the PAL.
- AssertCodeMsg((ptr - bytes) == size, EXCEPTIONCODE_LWM, "%s - Ended with unexpected sizes %p != %x",
+ AssertCodeMsg(ptr == (bytes + size), EXCEPTIONCODE_LWM, "%s - Ended with unexpected sizes %p != %x",
"Unknown type" /*typeid(_Item).name()*/, (void*)(ptr - bytes), size);
return size;
}
@@ -656,7 +656,7 @@ public:
ptr += bufferLength * sizeof(unsigned char);
}
- AssertCodeMsg((ptr - bytes) == size, EXCEPTIONCODE_LWM, "Ended with unexpected sizes %Ix != %x", ptr - bytes,
+ AssertCodeMsg(ptr == (bytes + size), EXCEPTIONCODE_LWM, "Ended with unexpected sizes %Ix != %x", ptr - bytes,
size);
return size;
}