diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-09-06 11:29:15 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-09-06 11:29:15 +0300 |
commit | 044bfb7f79a2ca085a08aeec83821d23a2fd4000 (patch) | |
tree | 2389c2579429cc5fb129b164ea2aebc49e7be72b /cord | |
parent | bcb8491d83b9eddc84f661ae6daccfc5a131d06d (diff) | |
download | bdwgc-044bfb7f79a2ca085a08aeec83821d23a2fd4000.tar.gz |
Eliminate 'different const qualifiers' MS VC warnings in cordbscs
(fix of commit 2e7daad62)
* cord/cordbscs.c (CORD_cat_char_star, CORD_cat): Cast the first
argument of GC_PTR_STORE_AND_DIRTY() to void*.
Diffstat (limited to 'cord')
-rw-r--r-- | cord/cordbscs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cord/cordbscs.c b/cord/cordbscs.c index 117dd9f3..ff0d2399 100644 --- a/cord/cordbscs.c +++ b/cord/cordbscs.c @@ -231,7 +231,7 @@ CORD CORD_cat_char_star(CORD x, const char * y, size_t leny) result->left_len = (unsigned char)lenx; result->len = (word)result_len; result->left = x; - GC_PTR_STORE_AND_DIRTY(&result->right, y); + GC_PTR_STORE_AND_DIRTY((void *)&result->right, y); GC_reachable_here(x); if (depth >= MAX_DEPTH) { return(CORD_balance((CORD)result)); @@ -273,7 +273,7 @@ CORD CORD_cat(CORD x, CORD y) result->left_len = (unsigned char)lenx; result->len = (word)result_len; result->left = x; - GC_PTR_STORE_AND_DIRTY(&result->right, y); + GC_PTR_STORE_AND_DIRTY((void *)&result->right, y); GC_reachable_here(x); if (depth >= MAX_DEPTH) { return(CORD_balance((CORD)result)); |