Fix description of bug in 1990/westley

Add to README.md that one thing (a crash without an arg) is at this time
not a bug but a feature.

Fix the statement that a negative number causes the entry to enter an
infinite loop. Instead any input that's not a number > 0 will cause the
program to enter an infinite loop.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-11 06:05:30 -07:00
1 parent 1c21b4d072
commit 861f3fb5a6
3 files changed
+9 -4

No files matched your search

+2
View File
@@ -128,6 +128,8 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c ${PROG}: ${PROG}.c
@echo "NOTE: this will very likely crash without an arg and will enter an infinite loop"
@echo "with an arg that is not a number > 0."
${CC} ${CFLAGS} $< -o $@ ${LIBS} ${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable # alternative executable
+5 -2
View File
@@ -24,8 +24,11 @@ systems. It had `1s` in places for a short int which was changed to just `1`.
Since it's instructional to see the differences he has provided an alternate Since it's instructional to see the differences he has provided an alternate
version with the original code. See below. Thank you Cody for your assistance! version with the original code. See below. Thank you Cody for your assistance!
NOTE: this entry will segfault without an arg and will enter an infinite loop if NOTE: this program will enter an infinite loop if input is not a number > 0.
input is not a positive number.
### INABIAF - it's not a bug it's a feature :-)
NOTE: this entry will very likely crash or do something else without an arg.
## Try: ## Try:
+2 -2
View File
@@ -537,8 +537,8 @@ fixing so it should not be fixed.
## STATUS: known bug - please help us fix ## STATUS: known bug - please help us fix
However a negative number will make the program enter an infinite loop. This However any input not a number > 0 will make the program enter an infinite loop.
will be fixed in time but it's noted here for now. This will be fixed in time but it's noted here for now.
# 1991 # 1991