projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52b9aa8
)
Add two (U8 *) casts to placate C++.
author
Nicholas Clark
<nick@ccl4.org>
Mon, 19 Oct 2009 10:04:54 +0000
(11:04 +0100)
committer
Nicholas Clark
<nick@ccl4.org>
Mon, 19 Oct 2009 10:04:54 +0000
(11:04 +0100)
ext/XS-APItest/APItest.xs
patch
|
blob
|
history
diff --git
a/ext/XS-APItest/APItest.xs
b/ext/XS-APItest/APItest.xs
index
4eac4a6
..
18d6752
100644
(file)
--- 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';