From: SourceForge.net <no...@so...> - 2006-12-21 22:55:25
|
Bugs item #1620240, was opened at 2006-12-21 13:35 Message generated for change (Comment added) made by gga73 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1620240&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: ruby Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Gonzalo Garramuno (gga73) Assigned to: cfis (cfis) Summary: reinterpret_cast misused with directors Initial Comment: Currently, SWIG is casting classes using: arg1 = reinterpret_cast< fltk::Widget * >(argp1); director = dynamic_cast<Swig::Director *>(arg1); This is incorrect when directors are used, as it can lead to incorrect behavior of a multi-inheritance class. Proper casting should be: arg1 = static_cast< fltk::Widget * >(argp1); director = dynamic_cast<Swig::Director *>(arg1); Otherwise, this results in incorrect casting behavior on x86-64 machines under Linux. ---------------------------------------------------------------------- >Comment By: Gonzalo Garramuno (gga73) Date: 2006-12-21 19:55 Message: Logged In: YES user_id=961712 Originator: YES Find attached a .zip file that shows the problem, on x86-64 machines. Rectangle->x() returns incorrect information due to improper address/casting. File Added: BUG.zip ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1620240&group_id=1645 |