From: Sinan Kaya Date: Mon, 18 Mar 2019 18:14:40 +0000 (+0000) Subject: Conversion issues X-Git-Tag: accepted/tizen/unified/20190813.215958~55^2~28^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c1c24998ea177a465f7cf8649eb7ae77fcd2e77;p=platform%2Fupstream%2Fcoreclr.git Conversion issues --- diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h index 1be000c..38ef778 100644 --- a/src/pal/inc/pal.h +++ b/src/pal/inc/pal.h @@ -475,13 +475,13 @@ PALAPI PAL_GetApplicationGroupId(); #endif -static const int MAX_DEBUGGER_TRANSPORT_PIPE_NAME_LENGTH = MAX_PATH; +static const unsigned int MAX_DEBUGGER_TRANSPORT_PIPE_NAME_LENGTH = MAX_PATH; PALIMPORT VOID PALAPI PAL_GetTransportName( - const int MAX_TRANSPORT_NAME_LENGTH, + const unsigned int MAX_TRANSPORT_NAME_LENGTH, OUT char *name, IN const char *prefix, IN DWORD id, diff --git a/src/pal/src/thread/process.cpp b/src/pal/src/thread/process.cpp index f7618cb..35ac2bf 100644 --- a/src/pal/src/thread/process.cpp +++ b/src/pal/src/thread/process.cpp @@ -2296,7 +2296,7 @@ GetProcessIdDisambiguationKey(DWORD processId, UINT64 *disambiguationKey) VOID PALAPI PAL_GetTransportName( - const int MAX_TRANSPORT_NAME_LENGTH, + const unsigned int MAX_TRANSPORT_NAME_LENGTH, OUT char *name, IN const char *prefix, IN DWORD id, @@ -2370,7 +2370,7 @@ PAL_GetTransportName( } int chars = snprintf(name, MAX_TRANSPORT_NAME_LENGTH, formatBuffer, prefix, id, disambiguationKey, suffix); - _ASSERTE(chars > 0 && chars < MAX_TRANSPORT_NAME_LENGTH); + _ASSERTE(chars > 0 && (unsigned int)chars < MAX_TRANSPORT_NAME_LENGTH); } /*++