From cb5c6f441f394f91bedf641aa76841bdb833e440 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 10 Aug 2011 19:43:21 +0200 Subject: Fix a c++ warning --- lib/ccan/tally/tally.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ccan/tally') diff --git a/lib/ccan/tally/tally.c b/lib/ccan/tally/tally.c index d3d320eb1b..2af7353380 100644 --- a/lib/ccan/tally/tally.c +++ b/lib/ccan/tally/tally.c @@ -450,7 +450,7 @@ char *tally_histogram(const struct tally *tally, largest_bucket = tally->counts[i]; } - p = graph = malloc(height * (width + 1) + 1); + p = graph = (char *)malloc(height * (width + 1) + 1); if (!graph) { free(tmp); return NULL; -- cgit