summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pal/inc/pal.h4
-rw-r--r--src/pal/src/thread/process.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h
index 1be000ce8a..38ef778d53 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 f7618cbdb9..35ac2bf442 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);
}
/*++