diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-10-19 11:04:54 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-10-19 11:04:54 +0100 |
commit | 25f2e8444d524c6ef7bbc568b393462ae7a14e94 (patch) | |
tree | 233b6fa8ce7ac70943f422136e9bd1cf3a663394 /ext | |
parent | 52b9aa85a8c28ddc591b0a7f2b1f8c729075d9a1 (diff) | |
download | perl-25f2e8444d524c6ef7bbc568b393462ae7a14e94.tar.gz |
Add two (U8 *) casts to placate C++.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/XS-APItest/APItest.xs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs index 4eac4a61df..18d6752e8b 100644 --- a/ext/XS-APItest/APItest.xs +++ b/ext/XS-APItest/APItest.xs @@ -912,9 +912,9 @@ utf16_to_utf8 (sv, ...) /* Mortalise this right now, as we'll be testing croak()s */ dest = sv_2mortal(newSV(len * 3 / 2 + 1)); if (ix) { - utf16_to_utf8_reversed(source, SvPVX(dest), len, &got); + utf16_to_utf8_reversed(source, (U8 *)SvPVX(dest), len, &got); } else { - utf16_to_utf8(source, SvPVX(dest), len, &got); + utf16_to_utf8(source, (U8 *)SvPVX(dest), len, &got); } SvCUR_set(dest, got); SvPVX(dest)[got] = '\0'; |