pike.git/
src/
dynamic_load.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-04-27
2014-04-27 20:37:42 by Martin Nilsson <nilsson@opera.com>
dc8d02fd4ecce2757f0fa8f4ee5418035abd5a99 (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
mallocs nowdays return void*, so no need to case.
128:
static TCHAR *convert_string(const char *str, ptrdiff_t len) { ptrdiff_t e;
-
TCHAR *ret=
(TCHAR *)
xalloc((len+1) * sizeof(TCHAR));
+
TCHAR *ret=xalloc((len+1) * sizeof(TCHAR));
for(e=0;e<len;e++) ret[e]=EXTRACT_UCHAR(str+e); ret[e]=0; return ret;