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) {
|
||||
case PointerClass:
|
||||
return malloc(count * 4);
|
||||
case Char:
|
||||
return malloc(count);
|
||||
default:
|
||||
throw Exception(T.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user