Browse Source

* pas2jni: Fixed the Pointer() support function.

git-svn-id: trunk@28046 -
yury 11 years ago
parent
commit
a27ea85560
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/pas2jni/writer.pas

+ 1 - 1
utils/pas2jni/writer.pas

@@ -1286,7 +1286,7 @@ begin
       Fjs.DecI;
       Fjs.WriteLn('}');
       Fjs.WriteLn;
-      Fjs.WriteLn('public static long Pointer(PascalObject obj) { return (obj == null) ? null : obj._pasobj; }');
+      Fjs.WriteLn('public static long Pointer(PascalObject obj) { return (obj == null) ? 0 : obj._pasobj; }');
 
       // Record
       Fjs.WriteLn;