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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -4790,4 +4790,4 @@ If your SWIG installation went well Unix users should be able to type <tt>make</
|
||||||
For the benefit of Windows users, there are also Visual C++ project files in a couple of the <a href="Windows.html#examples">Windows Examples</a>.
|
For the benefit of Windows users, there are also Visual C++ project files in a couple of the <a href="Windows.html#examples">Windows Examples</a>.
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue