瀏覽代碼

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

git-svn-id: trunk@34954 -
yury 8 年之前
父節點
當前提交
ed6d993008
共有 1 個文件被更改,包括 1 次插入1 次删除
  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: