107 |
|
|
108 |
/* Attempts to add range [LOW, HIGH] to the set of numeric |
/* Attempts to add range [LOW, HIGH] to the set of numeric |
109 |
missing values MV. Returns true if successful, false if MV |
missing values MV. Returns true if successful, false if MV |
110 |
has no room for a range. */ |
has no room for a range, or if LOW > HIGH. */ |
111 |
bool |
bool |
112 |
mv_add_num_range (struct missing_values *mv, double low, double high) |
mv_add_num_range (struct missing_values *mv, double low, double high) |
113 |
{ |
{ |
114 |
assert (mv->width == 0); |
assert (mv->width == 0); |
115 |
|
if (low > high) |
116 |
|
return false; |
117 |
switch (mv->type) |
switch (mv->type) |
118 |
{ |
{ |
119 |
case MV_NONE: |
case MV_NONE: |