projects
/
parallel_computing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77d6c16
)
Use %lu to format the number of bytes in src/sorting/main.c.
author
W. Trevor King
<wking@drexel.edu>
Fri, 29 Oct 2010 15:48:28 +0000
(11:48 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Fri, 29 Oct 2010 15:48:28 +0000
(11:48 -0400)
src/sorting/main.c
patch
|
blob
|
history
diff --git
a/src/sorting/main.c
b/src/sorting/main.c
index 0bd6fd6cb487ab0db439fc98ebad41f7ac6e390c..23a18b82385ecb371565c66fe8a8f2a162056384 100644
(file)
--- a/
src/sorting/main.c
+++ b/
src/sorting/main.c
@@
-59,8
+59,8
@@
int read_data(const char *file_name, int *pList_size, double **pList)
// allocate memory for the data
*pList = (double *)malloc(sizeof(double) * *pList_size);
if (*pList == NULL) {
- fprintf(stderr, "could not allocate %
d
bytes\n",
-
sizeof(double) * *pList_size
);
+ fprintf(stderr, "could not allocate %
lu
bytes\n",
+
(unsigned long int) (sizeof(double) * *pList_size)
);
return EXIT_FAILURE;
}
// read in the data