missing std.conv : to import

This commit is contained in:
John Colvin 2023-03-05 12:38:55 +00:00 committed by GitHub
parent 3e4616636e
commit 0713ebf2a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

1
jni.d
View File

@ -1951,6 +1951,7 @@ auto DDatumToJni(T)(JNIEnv* env, T data) {
(*env).SetByteArrayRegion(env, j, 0, cast(jsize) data.length, data.ptr);
return j;
} else static if(is(T == wchar[])) {
import std.conv : to;
return DDatumToJni(env, to!string(data)); // FIXME: could prolly be more efficient
} else static if(is(T == short[])) {
auto j = (*env).NewShortArray(env, cast(jsize) data.length);