From 7812f299855681d5f20f2d83b8bd02f58cd74e38 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 8 Sep 2005 18:41:46 +0000 Subject: [PATCH] (Duplicate representation of merged trees): Add casts to pacify g++. --- tests/glr-regression.at | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.47.2