Change argc to int in 1990/westley
This commit is contained in:
1 parent
8bda247aa3
commit
25c081a66f
2 files changed
+4
-1
No files matched your search
@@ -4,7 +4,7 @@ char*lie;
|
||||
|
||||
not; int rested, get, out;
|
||||
|
||||
main(ly, die) char ly, **die ;{
|
||||
main(ly, die) int ly; char **die ;{
|
||||
|
||||
signed char lotte,
|
||||
|
||||
|
||||
@@ -1038,6 +1038,9 @@ was changed to just `1`. Since it's instructional to see the differences he has
|
||||
provided an alternate version, [westley.alt.c](1990/westley/westley.alt.c), which
|
||||
is the original code.
|
||||
|
||||
He also changed the `argc` to be an `int`, not a `char`, even though it might
|
||||
often be the same (for the purpose of `clang`?).
|
||||
|
||||
He also fixed the code to not enter an infinite loop if arg is a number not > 0
|
||||
and to not crash if no arg is specified.
|
||||
|
||||
|
||||
Reference in new issue
Block a user