projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e21ed65
)
(binary_search): Fix assertion.
author
Ben Pfaff
<blp@gnu.org>
Thu, 7 Jun 2007 05:46:37 +0000
(
05:46
+0000)
committer
Ben Pfaff
<blp@gnu.org>
Thu, 7 Jun 2007 05:46:37 +0000
(
05:46
+0000)
src/libpspp/ChangeLog
patch
|
blob
|
history
src/libpspp/array.c
patch
|
blob
|
history
diff --git
a/src/libpspp/ChangeLog
b/src/libpspp/ChangeLog
index 43da54eebbdf8e0e795e7830d737b328b61c06a9..e92778cb3d0187b902e7fbd0fac6b2c6da4b9a62 100644
(file)
--- a/
src/libpspp/ChangeLog
+++ b/
src/libpspp/ChangeLog
@@
-1,3
+1,7
@@
+2007-06-06 Ben Pfaff <blp@gnu.org>
+
+ * array.c (binary_search): Fix assertion.
+
2007-06-06 Ben Pfaff <blp@gnu.org>
Add error propagation layer. Patch #5916, slightly revised.
diff --git
a/src/libpspp/array.c
b/src/libpspp/array.c
index f375f83dfa9851bdb6208d0875d2356031c7501f..56afb1ae960abf3ab95fef0b9424cda2ed05e946 100644
(file)
--- a/
src/libpspp/array.c
+++ b/
src/libpspp/array.c
@@
-531,7
+531,7
@@
binary_search (const void *array, size_t count, size_t size,
void *value,
algo_compare_func *compare, const void *aux)
{
- assert (array != NULL);
+ assert (array != NULL
|| count == 0
);
assert (count <= INT_MAX);
assert (compare != NULL);