|
|
Author: paultcochrane
Date: Fri Sep 21 03:44:03 2007
New Revision: 21453
Modified:
trunk/src/encodings/utf16.c
Log:
[encodings] Removed compiler warning:
- request for implicit conversion from âvoid *â to âUChar *â not permitted
in C++
Modified: trunk/src/encodings/utf16.c
==============================================================================
--- trunk/src/encodings/utf16.c (original)
+++ trunk/src/encodings/utf16.c Fri Sep 21 03:44:03 2007
@@ -198,7 +198,7 @@
#if PARROT_HAS_ICU
if (in_place) {
/* need intermediate memory */
- p = mem_sys_allocate(src_len * sizeof (UChar));
+ p = (UChar *)mem_sys_allocate(src_len * sizeof (UChar));
}
else {
Parrot_reallocate_string(interp, dest, sizeof (UChar) * src_len);
@@ -219,7 +219,7 @@
* have to resize - required len in UChars is in dest_len
*/
if (in_place)
- p = mem_sys_realloc(p, dest_len * sizeof (UChar));
+ p = (UChar *)mem_sys_realloc(p, dest_len * sizeof (UChar));
else {
result->bufused = dest_len * sizeof (UChar);
Parrot_reallocate_string(interp, dest,
|
|