add Char to js_interop malloc
This commit is contained in:
@@ -407,6 +407,8 @@ Pointer<T> allocate<T extends NativeType>(int count) {
|
|||||||
switch (T) {
|
switch (T) {
|
||||||
case PointerClass:
|
case PointerClass:
|
||||||
return malloc(count * 4);
|
return malloc(count * 4);
|
||||||
|
case Char:
|
||||||
|
return malloc(count);
|
||||||
default:
|
default:
|
||||||
throw Exception(T.toString());
|
throw Exception(T.toString());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user