From 0713ebf2a92161714211e871ad7071ed1f56f648 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Sun, 5 Mar 2023 12:38:55 +0000 Subject: [PATCH] missing std.conv : to import --- jni.d | 1 + 1 file changed, 1 insertion(+) diff --git a/jni.d b/jni.d index 701986c..cc62a73 100644 --- a/jni.d +++ b/jni.d @@ -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);