summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-08-23 05:43:30 +0300
committerAbhijit Menon-Sen <ams@wiw.org>2002-08-23 01:27:23 +0000
commit5faea5d5ca85f96c20a763c619928a44d6a9303f (patch)
tree282cb897b7d4a035df1e04f96c255693fd71b07d /x2p
parentb4bc5691c8dfad19b52d103e3b12af9342fcea38 (diff)
downloadperl-5faea5d5ca85f96c20a763c619928a44d6a9303f.tar.gz
x2p/str.c signedness nits
Message-Id: <20020822234330.GC31624@lyta.hut.fi> p4raw-id: //depot/perl@17759
Diffstat (limited to 'x2p')
-rw-r--r--x2p/str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/x2p/str.c b/x2p/str.c
index bd9b3e026c..0ecb6b7f10 100644
--- a/x2p/str.c
+++ b/x2p/str.c
@@ -299,7 +299,7 @@ str_gets(register STR *str, register FILE *fp)
FILE_ptr(fp) = (void*)ptr; /* LHS STDCHAR* cast non-portable */
i = getc(fp); /* get more characters */
cnt = FILE_cnt(fp);
- ptr = FILE_ptr(fp); /* reregisterize cnt and ptr */
+ ptr = (STDCHAR*)FILE_ptr(fp); /* reregisterize cnt and ptr */
bpx = bp - str->str_ptr; /* prepare for possible relocation */
GROWSTR(&(str->str_ptr), &(str->str_len), str->str_cur + cnt + 1);
@@ -316,7 +316,7 @@ str_gets(register STR *str, register FILE *fp)
thats_all_folks:
FILE_cnt(fp) = cnt; /* put these back or we're in trouble */
- FILE_ptr(fp) = (STDCHAR*)ptr;
+ FILE_ptr(fp) = (void*)ptr; /* LHS STDCHAR* cast non-portable */
*bp = '\0';
str->str_cur = bp - str->str_ptr; /* set length */