Conversion issues
authorSinan Kaya <sinan.kaya@microsoft.com>
Mon, 18 Mar 2019 18:14:40 +0000 (18:14 +0000)
committerSinan Kaya <sinan.kaya@microsoft.com>
Mon, 18 Mar 2019 18:20:39 +0000 (18:20 +0000)
src/pal/inc/pal.h
src/pal/src/thread/process.cpp

index 1be000c..38ef778 100644 (file)
@@ -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,
index f7618cb..35ac2bf 100644 (file)
@@ -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);
 }
 
 /*++