Fix 1998/schnitzi for linux

It segfaulted due to wrong type of a variable.

It still crashes under macOS which I will be looking at in the near
future but it at least works for linux.

I noted in the bugs.md a compiler warning that should not be changed as
it's not a bug and in fact 'fixing' it will introduce a bug.
This commit is contained in:
Cody Boone Ferguson committed 2023-03-24 05:30:33 -07:00
1 parent 9e2b9667f1
commit 5506ea989d
4 files changed
+79 -49

No files matched your search

+15
View File
@@ -315,6 +315,21 @@ type).
# 1998
## [1998/schnitzi](1998/schnitzi/schnitzi.c) ([README.md](1998/schnitzi/README.md))
### Status: INABIAF - please do not fix
If you get the compiler warning:
warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
11 | void g(){ O=j; printf(_); }
| ^~~~~~
please do NOT change it! Doing so will break the generated output.
It does not currently work under macOS. This will be investigated in the near
future.
# 2000