mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 11:30:35 +02:00
* pas2jni: Proper boolean handling - jboolean must be 0/1.
git-svn-id: trunk@34954 -
This commit is contained in:
parent
d5cc2e83cf
commit
ed6d993008
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user