summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2017-11-28 07:44:10 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2017-11-28 07:58:28 +0200
commit6658c416bf804bb9e2a97f03ecaf0a8c2e1c1d49 (patch)
tree5f805a156a1d36fff9194f5dd9c2cea3ee75b3f9 /pp_sys.c
parentc89db7331f874451068a6afdaf37f5a015c34053 (diff)
downloadperl-6658c416bf804bb9e2a97f03ecaf0a8c2e1c1d49.tar.gz
STDCHAR * might not be char *.
And therefore one may not be able to subtract the pointers, for example in HP-UX.
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 4634c0e6b4..7c64ae1861 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3642,7 +3642,7 @@ PP(pp_fttext)
/* Here contains a variant under UTF-8 . See if the entire string is
* UTF-8. */
if (is_utf8_fixed_width_buf_flags(first_variant,
- len - ((char *) first_variant - s),
+ len - ((char *) first_variant - (char *) s),
0))
{
if (PL_op->op_type == OP_FTTEXT) {