baddc

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

commit b63c06bf44decb57a1e901a53daabb8645a2acb8
parent 4c0f22a0f7f3f04241b4b7f90b88da45c2fead6a
Author: phoebos <ben@bvnf.space>
Date:   Mon, 31 Jan 2022 01:59:40 +0000

fclose fp; remove unnecessary struct name

Diffstat:
Mbaddc.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/baddc.c b/baddc.c @@ -131,7 +131,7 @@ void root(void) { push((int)sqrt((double)pop())); } -struct map { +struct { char op; void (*f)(void); } ops[] = { @@ -211,6 +211,8 @@ int main(int argc, char **argv) { } end: free(buf); + if (fp != stdin) + fclose(fp); return 0; }