Explorar el Código

* pas2jni: Proper boolean handling - jboolean must be 0/1.

git-svn-id: trunk@34954 -
yury hace 8 años
padre
commit
ed6d993008
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils/pas2jni/writer.pas

+ 1 - 1
utils/pas2jni/writer.pas

@@ -2236,7 +2236,7 @@ begin
           btString, btWideString:
             Result:=Format('_StringToJString(_env, _JNIString(%s))', [Result]);
           btBoolean:
-            Result:=Format('jboolean(LongBool(%s))', [Result]);
+            Result:=Format('(jboolean(%s) and 1)', [Result]);
           btChar:
             Result:=Format('jchar(widechar(%s))', [Result]);
           btWideChar: