summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-13 13:57:53 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-13 13:57:53 +0000
commita17c7222566eaf13f314408f16003962518296ed (patch)
tree654908f3270414b941a7713d1bf628d58e7135d3 /perlio.c
parent9faf8d75b36b5058433b7bc0eebfb6e8674b88c7 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index b828bb28b5..8d54f77f42 100644
--- a/perlio.c
+++ b/perlio.c
@@ -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