From: Ivan Maidanski Date: Thu, 6 Sep 2018 08:29:15 +0000 (+0300) Subject: Eliminate 'different const qualifiers' MS VC warnings in cordbscs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=044bfb7f79a2ca085a08aeec83821d23a2fd4000;p=gc 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*. --- 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));