From 96a07d81eebb9e4bd7b3e906162ddd1f8db4d367 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 4 Jan 2024 17:10:41 -0500 Subject: Ring the bell on FP error. --- input.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/input.c b/input.c index 26a5266..90b6232 100644 --- a/input.c +++ b/input.c @@ -83,8 +83,9 @@ show_value() if(fetestexcept(FE_ALL_EXCEPT)) { set_string("Err"); + bell(); showing_err = 1; - return; + return; } if (base == 2) @@ -236,8 +237,10 @@ key(char c) feclearexcept(FE_ALL_EXCEPT); - if(showing_err && c != 27 && c != 'C') + if(showing_err && c != 27 && c != 'C') { + bell(); return; + } switch (c) { -- cgit v1.2.3