Skip to content

Commit 577f07f

Browse files
committed
Address janvorli's feedback comments
Commit migrated from dotnet/coreclr@805c8b2
1 parent 3647cd7 commit 577f07f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/coreclr/src/debug/createdump/datatarget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ DumpDataTarget::ReadVirtual(
150150
/* [optional][out] */ ULONG32 *done)
151151
{
152152
assert(m_fd != -1);
153-
size_t read = pread64(m_fd, buffer, size, (off64_t)(ULONG_PTR)address);
154-
if (read == (size_t)-1)
153+
ssize_t read = pread64(m_fd, buffer, size, (off64_t)(ULONG_PTR)address);
154+
if (read == -1)
155155
{
156156
*done = 0;
157157
return E_FAIL;

src/coreclr/tests/src/Interop/PInvoke/Decimal/PInvoke/DecNative.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ DECIMAL g_DECIMAL_MaxValue = { 0, {{ 0, 0 }}, static_cast<int>(0xffffffff), {{st
1010
DECIMAL g_DECIMAL_MinValue = { 0, {{ 0, DECIMAL_NEG }}, static_cast<int>(0xffffffff), {{static_cast<int>(0xffffffff), static_cast<int>(0xffffffff)}} };
1111
DECIMAL g_DECIMAL_Zero = { 0 };
1212

13-
CY g_CY_MaxValue = { { static_cast<int>(0xffffffff), static_cast<int>(0x7fffffff) } };
13+
CY g_CY_MaxValue = { { static_cast<int>(0xffffffff), 0x7fffffff} };
1414
CY g_CY_MinValue = { { (LONG)0x00000000, (LONG)0x80000000 } };
1515
CY g_CY_Zero = { { 0 } };
1616

src/coreclr/tests/src/Interop/PInvoke/Decimal/ReversePInvoke/RevNative.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ DECIMAL g_DECIMAL_MaxValue = { 0, {{ 0, 0 }}, static_cast<int>(0xffffffff), {{st
1010
DECIMAL g_DECIMAL_MinValue = { 0, {{ 0, DECIMAL_NEG }}, static_cast<int>(0xffffffff), {{static_cast<int>(0xffffffff), static_cast<int>(0xffffffff) }}};
1111
DECIMAL g_DECIMAL_Zero = { 0 };
1212

13-
CY g_CY_MaxValue = { {static_cast<int>(0xffffffff), static_cast<int>(0x7fffffff)} };
13+
CY g_CY_MaxValue = { {static_cast<int>(0xffffffff), 0x7fffffff} };
1414
CY g_CY_MinValue = { {(LONG)0x00000000, (LONG)0x80000000} };
1515
CY g_CY_Zero = { {0} };
1616

0 commit comments

Comments
 (0)