[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/missing-values.c
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/missing-values.c |
Date: |
Sat, 29 Oct 2005 19:35:57 -0400 |
Index: pspp/src/missing-values.c
diff -u pspp/src/missing-values.c:1.2 pspp/src/missing-values.c:1.3
--- pspp/src/missing-values.c:1.2 Tue Oct 25 04:28:17 2005
+++ pspp/src/missing-values.c Sat Oct 29 23:35:55 2005
@@ -107,11 +107,13 @@
/* Attempts to add range [LOW, HIGH] to the set of numeric
missing values MV. Returns true if successful, false if MV
- has no room for a range. */
+ has no room for a range, or if LOW > HIGH. */
bool
mv_add_num_range (struct missing_values *mv, double low, double high)
{
assert (mv->width == 0);
+ if (low > high)
+ return false;
switch (mv->type)
{
case MV_NONE: