diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-04-27 23:06:46 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-04-27 23:06:46 +0300 |
commit | 026dde22e2194990d699446d9ce71ea6e19859ed (patch) | |
tree | 80ff0955421fedc91b648b701c27d7de1def2ea6 | |
parent | 60be9d4da2a263acbdabbca00fc0880c1a124b95 (diff) | |
download | bdwgc-026dde22e2194990d699446d9ce71ea6e19859ed.tar.gz |
Fix missing cast of typed calloc result in gctest
(fix of commit fef1ce084)
* tests/gctest.c [!NO_TYPED_TEST && !GC_DEBUG] (typed_test): Cast
result of GC_calloc_do_explicitly_typed() to GC_word* type.
-rw-r--r-- | tests/gctest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gctest.c b/tests/gctest.c index 126f5c1c..3110a111 100644 --- a/tests/gctest.c +++ b/tests/gctest.c @@ -1400,7 +1400,8 @@ void typed_test(void) newP = (GC_word *)GC_CALLOC_EXPLICITLY_TYPED(1001, 3 * sizeof(GC_word), d2); # else - newP = GC_calloc_do_explicitly_typed(&ctd_l, sizeof(ctd_l)); + newP = (GC_word *)GC_calloc_do_explicitly_typed(&ctd_l, + sizeof(ctd_l)); # endif if (newP != NULL && (newP[0] != 0 || newP[1] != 0)) { GC_printf("Bad initialization by GC_calloc_explicitly_typed\n"); |