chiark / gitweb /
In do_palt(), mask out unused data bits.
authorBen Harris <bjh21@bjh21.me.uk>
Fri, 7 Jul 2017 23:51:44 +0000 (00:51 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Fri, 7 Jul 2017 23:51:44 +0000 (00:51 +0100)
commit7ba21188c816fd0c2291ce1364d5a781fa4c0bc8
tree2a888edd7b4ed69fe48d547853b36f9fdd770a35
parentce68065faa13fa4bc64dcceb2e86075009855483
In do_palt(), mask out unused data bits.

This avoids an infinite loop if one of them is inadvertently (or
advertently) set.  Why might one be set advertently?  Well, it would
allow us to replace our long lists of numbers with short strings.  For
instance, the U+0024 DOLLAR SIGN glyph is "NUTNEUN".  Sadly that would
make the program incompatible with non-ASCII systems and since I claim
ANSI C I should probably continue to support those.
bedstead.c