bc: fix handling of "digits" above 9
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 29 Dec 2018 01:24:19 +0000 (02:24 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 29 Dec 2018 01:24:19 +0000 (02:24 +0100)
commite16a5223d20e5715b98e1fd21fa8d59e75e4e793
tree6f5546a00e30296c557c26036d0363ce9e9369e6
parentf9b4cc114cb4eb2a997f08daa43af30ad598322c
bc: fix handling of "digits" above 9

function                                             old     new   delta
zxc_lex_next                                        1573    1608     +35
xc_parse_pushIndex                                    58      56      -2
xc_program_index                                      71      63      -8
zxc_program_num                                     1022     990     -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 35/-42)             Total: -7 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c
testsuite/bc_numbers1.bc [new file with mode: 0644]
testsuite/bc_numbers1_results.txt [new file with mode: 0644]