Merge pull request #52 from nineties/fix-open

fix open-file
This commit is contained in:
Koichi NAKAMURA 2022-01-15 15:40:56 +09:00 committed by GitHub
commit ca90c5df38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2527,7 +2527,7 @@ need-defined (write)
need-defined (read) need-defined (read)
: open-file ( c-addr fam -- file e ) : open-file ( c-addr fam -- file e )
2dup (open) dup -1 = if 2dup (open) dup 0< if
( c-addr fam fd ) ( c-addr fam fd )
3drop 0 OPEN-FILE-ERROR exit 3drop 0 OPEN-FILE-ERROR exit
then then