projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
table-paste: Add error-checking assertion to table_paste().
[pspp]
/
src
/
data
/
data-in.c
diff --git
a/src/data/data-in.c
b/src/data/data-in.c
index db99aa4fb896d9d8f99657b2e7c6caf41940948e..ace167090c57b9f2f2fe97a4d4e96cd80405764d 100644
(file)
--- a/
src/data/data-in.c
+++ b/
src/data/data-in.c
@@
-919,7
+919,7
@@
parse_year (struct data_in *i, long *year, size_t max_digits)
else
*year += epoch_century + 100;
}
- if (*year >= 1582
||
*year <= 19999)
+ if (*year >= 1582
&&
*year <= 19999)
return NULL;
return xasprintf (_("Year (%ld) must be between 1582 and 19999."), *year);