From: Richard Kenner Date: Thu, 10 Nov 1994 20:07:16 +0000 (-0500) Subject: (init_objc): Add missing casts to args of bcopy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2991183af807c2bb3b3d15863eb4d2f4c49d4ff;p=gcc.git (init_objc): Add missing casts to args of bcopy. From-SVN: r8407 --- diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index b1cc91d49e4..4f89d5ad765 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -7465,16 +7465,16 @@ init_objc () tree_code_name = (char **) xrealloc (tree_code_name, sizeof (char *) * LAST_OBJC_TREE_CODE); - bcopy (objc_tree_code_type, - tree_code_type + (int) LAST_CODE, + bcopy ((char *) objc_tree_code_type, + (char *) (tree_code_type + (int) LAST_CODE), (((int) LAST_OBJC_TREE_CODE - (int) LAST_CODE) * sizeof (char *))); - bcopy (objc_tree_code_length, - tree_code_length + (int) LAST_CODE, + bcopy ((char *) objc_tree_code_length, + (char *) (tree_code_length + (int) LAST_CODE), (((int) LAST_OBJC_TREE_CODE - (int) LAST_CODE) * sizeof (int))); - bcopy (objc_tree_code_name, - tree_code_name + (int) LAST_CODE, + bcopy ((char *) objc_tree_code_name, + (char *) (tree_code_name + (int) LAST_CODE), (((int) LAST_OBJC_TREE_CODE - (int) LAST_CODE) * sizeof (char *)));