Carefully check signed sizes when parsing.
Carefully check signed sizes when parsing.

...instead of just casting everywhere. This commit also gets rid of an
assert because an invalid terminfo database shouldn't cause a panic.

brson/term,dflemstr/term,rust-lang/term