Undo segfault fix in 1984/laman w/o arg
As part of redefining INABIAF this is necessary. The README.md and Makefile both warn about the crash.
This commit is contained in:
1 parent
6f90e0dc3e
commit
ec111eb6b2
3 files changed
+5
-4
No files matched your search
@@ -128,6 +128,7 @@ all: data ${TARGET}
|
|||||||
supernova deep_magic magic charon pluto
|
supernova deep_magic magic charon pluto
|
||||||
|
|
||||||
${PROG}: ${PROG}.c
|
${PROG}: ${PROG}.c
|
||||||
|
@echo "NOTE: this entry will segfault without an arg."
|
||||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||||
|
|
||||||
# alternative executable
|
# alternative executable
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ Mike Laman
|
|||||||
|
|
||||||
./laman <positive number>
|
./laman <positive number>
|
||||||
|
|
||||||
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this entry to not
|
|
||||||
segfault if no arg is specified. Instead it'll print nothing. Thank you Cody for
|
NOTE: this entry will segfault without an arg.
|
||||||
your assistance!
|
|
||||||
|
|
||||||
## Try:
|
## Try:
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
a[900]; b;c;d=1 ;e=1;f; g;h;O; main(k,
|
a[900]; b;c;d=1 ;e=1;f; g;h;O; main(k,
|
||||||
l)char* *l;{g= l[1]? atoi(*++l) :0;for(k=
|
l)char* *l;{g= atoi(* ++l); for(k=
|
||||||
0;k*k< g;b=k ++>>1) ;for(h= 0;h*h<=
|
0;k*k< g;b=k ++>>1) ;for(h= 0;h*h<=
|
||||||
g;++h); --h;c=( (h+=g>h *(h+1)) -1)>>1;
|
g;++h); --h;c=( (h+=g>h *(h+1)) -1)>>1;
|
||||||
while(d <=g){ ++O;for (f=0;f< O&&d<=g
|
while(d <=g){ ++O;for (f=0;f< O&&d<=g
|
||||||
|
|||||||
Reference in new issue
Block a user