From: Paul Eggert Date: Thu, 8 Sep 2005 18:41:46 +0000 (+0000) Subject: (Duplicate representation of merged trees): Add casts to pacify g++. X-Git-Tag: BISON-2_1~20 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/7812f299855681d5f20f2d83b8bd02f58cd74e38?ds=sidebyside (Duplicate representation of merged trees): Add casts to pacify g++. --- diff --git a/tests/glr-regression.at b/tests/glr-regression.at index 0fb97057..6f6562c2 100644 --- a/tests/glr-regression.at +++ b/tests/glr-regression.at @@ -389,7 +389,8 @@ static char * make_value (char *parent, char *child) { char const format[] = "%s <- %s"; - char *value = malloc (strlen (parent) + strlen (child) + sizeof format); + char *value = + (char *) malloc (strlen (parent) + strlen (child) + sizeof format); sprintf (value, format, parent, child); return value; } @@ -398,7 +399,8 @@ static char * merge (YYSTYPE s1, YYSTYPE s2) { char const format[] = "merge{ %s and %s }"; - char *value = malloc (strlen (s1.ptr) + strlen (s2.ptr) + sizeof format); + char *value = + (char *) malloc (strlen (s1.ptr) + strlen (s2.ptr) + sizeof format); sprintf (value, format, s1.ptr, s2.ptr); return value; }