12 lines
639 B
Diff
12 lines
639 B
Diff
|
--- kross-interpreters-4.7.2/java/krossjava/jvmvariant.h 2011-08-22 15:25:39.000000000 +0200
|
||
|
+++ kross-interpreters-4.7.2/java/krossjava/jvmvariant.h.conversion_fix 2011-10-28 21:42:30.000000000 +0200
|
||
|
@@ -126,7 +126,7 @@
|
||
|
QVarLengthArray<jbyte, 1024> bytes(count);
|
||
|
for(int i = 0; i < count; ++i)
|
||
|
bytes[i] = array[i];
|
||
|
- env->SetByteArrayRegion(bytearray, 0, count, bytes.constData());
|
||
|
+ env->SetByteArrayRegion(bytearray, 0, count, (jbyte*)bytes.constData());
|
||
|
return bytearray;
|
||
|
}
|
||
|
inline static QByteArray toVariant(jobject value, JNIEnv* env) {
|