summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-05-25 08:47:20 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-06-15 22:58:28 +0300
commit05fd056b24fd85c910a56c68da09ebae531ef07d (patch)
tree7487dd3ff5655b67b204d908b64b4900c69ae6b6
parent6a6dfe829d8aa55bede0b793b7c270203a06f6db (diff)
downloadbdwgc-05fd056b24fd85c910a56c68da09ebae531ef07d.tar.gz
Eliminate 'possible loss of data' compiler warning in GC_envfile_getenv
(fix of commit 176d5bda1) * misc.c [GC_READ_ENV_FILE] (GC_envfile_getenv): Change type of namelen from unsigned to size_t.
-rw-r--r--misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 22582778..15c760fa 100644
--- a/misc.c
+++ b/misc.c
@@ -714,7 +714,8 @@ GC_API void GC_CALL GC_get_heap_usage_safe(GC_word *pheap_size,
{
char *p;
char *end_of_content;
- unsigned namelen;
+ size_t namelen;
+
# ifndef NO_GETENV
p = getenv(name); /* try the standard getenv() first */
if (p != NULL)