projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed some calls to xcalloc where the quantity and size parameters had been transposed.
[pspp]
/
src
/
libpspp
/
bit-vector.c
diff --git
a/src/libpspp/bit-vector.c
b/src/libpspp/bit-vector.c
index 2b982915239a1f935ea13084393c0df32a258a56..79367248f0ae8653c9463709dc03c4702daa860e 100644
(file)
--- a/
src/libpspp/bit-vector.c
+++ b/
src/libpspp/bit-vector.c
@@
-25,7
+25,8
@@
unsigned long int *
bitvector_allocate(size_t n)
{
- return xcalloc (sizeof (unsigned long int), DIV_RND_UP (n, BITS_PER_ULONG));
+ return xcalloc (DIV_RND_UP (n, BITS_PER_ULONG),
+ sizeof (unsigned long int));
}
size_t