baddc

integer-precision dc(1)
git clone git://bvnf.space/baddc.git
Log | Files | Refs | README

commit 292c2f76550c274e32829e9a7f602a51b24d7b77
parent dd904dca3a854aa350ff7f9ff85d0fa1ba249e87
Author: phoebos <ben@bvnf.space>
Date:   Mon, 10 Oct 2022 18:23:26 +0100

clarify misleading syntax

Diffstat:
Mbaddc.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/baddc.c b/baddc.c @@ -243,7 +243,7 @@ int main(int argc, char **argv) { curnum = 0; if (isspace(buf[i])) { continue; - } if (isdigit(buf[i])) { + } else if (isdigit(buf[i])) { push(buf[i] - '0'); } else { for (size_t j = 0; j < NUM_OPS; j++) {