summaryrefslogtreecommitdiff
path: root/typd_mlc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-06-06 21:47:42 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-06-07 14:10:37 +0300
commitaf57ecdaf379dab80ee451d0586b53cae1a9a1b7 (patch)
tree7ef239f57ff353f6f765d21371d105b2213103a8 /typd_mlc.c
parentd42e040f6ce46633cf9547d3ec7870d1d021f849 (diff)
downloadbdwgc-af57ecdaf379dab80ee451d0586b53cae1a9a1b7.tar.gz
Fix GC_make_descriptor for zero length argument
* typd_mlc.c (GC_make_descriptor): Cast len variable to signed_word.
Diffstat (limited to 'typd_mlc.c')
-rw-r--r--typd_mlc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/typd_mlc.c b/typd_mlc.c
index 4019c50a..52a9bd11 100644
--- a/typd_mlc.c
+++ b/typd_mlc.c
@@ -507,7 +507,7 @@ STATIC mse * GC_array_mark_proc(word * addr, mse * mark_stack_ptr,
GC_API GC_descr GC_CALL GC_make_descriptor(const GC_word * bm, size_t len)
{
- signed_word last_set_bit = len - 1;
+ signed_word last_set_bit = (signed_word)len - 1;
GC_descr result;
DCL_LOCK_STATE;