diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-13 13:57:53 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-13 13:57:53 +0000 |
commit | a17c7222566eaf13f314408f16003962518296ed (patch) | |
tree | 654908f3270414b941a7713d1bf628d58e7135d3 /perlio.c | |
parent | 9faf8d75b36b5058433b7bc0eebfb6e8674b88c7 (diff) | |
download | perl-a17c7222566eaf13f314408f16003962518296ed.tar.gz |
Make PerlIO_getpos() to behave like fgetpos() on return.
p4raw-id: //depot/perl@7672
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2314,7 +2314,7 @@ int PerlIO_getpos(PerlIO *f, Fpos_t *pos) { *pos = PerlIO_tell(f); - return *pos != -1; + return *pos == -1 ? -1 : 0; } #else #ifndef PERLIO_IS_STDIO |