Eliminate 'different const qualifiers' MS VC warnings in cordbscs
authorIvan Maidanski <ivmai@mail.ru>
Thu, 6 Sep 2018 08:29:15 +0000 (11:29 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 6 Sep 2018 08:29:15 +0000 (11:29 +0300)
(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*.

cord/cordbscs.c

index 117dd9f..ff0d239 100644 (file)
@@ -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));