X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Futils%2Fprof%2Fcgprof%2Fmatrix.c;h=b4ca43f96bb7febb0636a6f35e265bd2b45d65cb;hb=8ec4842b5dd3a15d0afda537b9461402d6e7f80d;hp=328ceebcda6321200cb3dca271bd3092db7203e5;hpb=f601ca97c556d53b0376e523cccd36e27d8b547e;p=ghc-hetmet.git diff --git a/ghc/utils/prof/cgprof/matrix.c b/ghc/utils/prof/cgprof/matrix.c index 328ceeb..b4ca43f 100644 --- a/ghc/utils/prof/cgprof/matrix.c +++ b/ghc/utils/prof/cgprof/matrix.c @@ -1,5 +1,5 @@ /* ------------------------------------------------------------------------ - * $Id: matrix.c,v 1.1 2000/04/05 10:06:36 simonmar Exp $ + * $Id: matrix.c,v 1.3 2006/01/09 14:32:31 simonmar Exp $ * * Copyright (C) 1995-2000 University of Oxford * @@ -23,6 +23,7 @@ #include #include +#include #include "matrix.h" Matrix newMat(int rows,int cols, int elsize, void *zero) { @@ -69,7 +70,7 @@ void *_Mat(Matrix *mat,int x, int y,int lineno, char *filename) { /* Not in list */ ptr = (Matrix_element*) malloc(sizeof(Matrix_element)); if (ptr==NULL) { - fprintf(stderr,"{_Mat} failed to allocate %d bytes\n", + fprintf(stderr,"{_Mat} failed to allocate %zd bytes\n", sizeof(Matrix_element)); exit(1); }