Fix segfault in macOS with 1989/paul

The problem was that the int * needed to be a long *. It became apparent
to me when evaluating it with lldb as I noticed a pointer was long, not
an int. This does not cause a problem with linux. I have no 32-bit
system to test but I don't believe this will be an actual problem.
This commit is contained in:
Cody Boone Ferguson committed 2023-03-27 10:05:01 -07:00
1 parent 465d4239ed
commit 6b0cec23d6
4 files changed
+5 -10

No files matched your search

+4 -3
View File
@@ -11,14 +11,15 @@
make all
NOTE: this entry will likely dump core with arm64 chips. We could get it to work
with modern systems with x86_64 but systems but at least with macOS arm64
this program dumps core. We could not test Intel Macs.
## Try:
./paul
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed a segfault under
macOS. The problem was that the int (from `#define f`) should be a long. This
became apparent when he was using lldb and saw that the type of a pointer was
long. Thank you Cody for your assistance!
## Judges' comments: