projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2006-01-09 14:32:31 by simonmar]
[ghc-hetmet.git]
/
ghc
/
utils
/
prof
/
cgprof
/
matrix.c
diff --git
a/ghc/utils/prof/cgprof/matrix.c
b/ghc/utils/prof/cgprof/matrix.c
index
328ceeb
..
b4ca43f
100644
(file)
--- 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
*
*
* Copyright (C) 1995-2000 University of Oxford
*
@@
-23,6
+23,7
@@
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include "matrix.h"
Matrix newMat(int rows,int cols, int elsize, void *zero) {
#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) {
/* 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);
}
sizeof(Matrix_element));
exit(1);
}