Example typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5645 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
412a8d9ca2
commit
e0232cc23b
1 changed files with 2 additions and 2 deletions
|
|
@ -4123,7 +4123,7 @@ allow the calling function to read the double * value after returning from the f
|
|||
jfieldID fid = jenv->GetFieldID(clazz, "swigCPtr", "J");
|
||||
jlong cPtr = jenv->GetLongField($input, fid);
|
||||
MyDouble *pMyDouble = NULL;
|
||||
*(MyDouble *)&pMyDouble = *(MyDouble *)&cPtr;
|
||||
*(MyDouble **)&pMyDouble = *(MyDouble **)&cPtr;
|
||||
$1 = &pMyDouble->value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue