X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=gprof%2Fhist.c;fp=gprof%2Fhist.c;h=a790fd48ccedaceddc8d25f36c8898031c9b6d0c;hb=336ab4ffe00df012731fb9bc77c1aebae91e68ba;hp=d0c02d3f0d4bae646bb4e53e4c0fb07fc2c58167;hpb=a0f0ce2074ba7a480f1d4cc78f1552e85da1d7af;p=pf3gnuchains%2Fpf3gnuchains3x.git diff --git a/gprof/hist.c b/gprof/hist.c index d0c02d3f0d..a790fd48cc 100644 --- a/gprof/hist.c +++ b/gprof/hist.c @@ -198,8 +198,8 @@ hist_read_rec (FILE * ifp, const char *filename) /* This is new record. Add it to global array and allocate space for the samples. */ - histograms = xrealloc (histograms, - sizeof (histogram) * (num_histograms + 1)); + histograms = (struct histogram *) + xrealloc (histograms, sizeof (histogram) * (num_histograms + 1)); memcpy (histograms + num_histograms, &n_record, sizeof (histogram)); record = &histograms[num_histograms];