Example typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5645 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f979a8d156
commit
37911dd2b3
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");
|
jfieldID fid = jenv->GetFieldID(clazz, "swigCPtr", "J");
|
||||||
jlong cPtr = jenv->GetLongField($input, fid);
|
jlong cPtr = jenv->GetLongField($input, fid);
|
||||||
MyDouble *pMyDouble = NULL;
|
MyDouble *pMyDouble = NULL;
|
||||||
*(MyDouble *)&pMyDouble = *(MyDouble *)&cPtr;
|
*(MyDouble **)&pMyDouble = *(MyDouble **)&cPtr;
|
||||||
$1 = &pMyDouble->value;
|
$1 = &pMyDouble->value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue