Browse Source

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

git-svn-id: trunk@34954 -
yury 8 years ago
parent
commit
ed6d993008
1 changed files with 1 additions and 1 deletions
  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: