diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-05-25 08:47:20 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-06-15 22:58:28 +0300 |
commit | 05fd056b24fd85c910a56c68da09ebae531ef07d (patch) | |
tree | 7487dd3ff5655b67b204d908b64b4900c69ae6b6 | |
parent | 6a6dfe829d8aa55bede0b793b7c270203a06f6db (diff) | |
download | bdwgc-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |