Bugs item #1733064, was opened at 2007-06-07 22:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=745324&aid=1733064&group_id=140042

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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Pavel Vozenilek (pvozenilek)
Assigned to: Nobody/Anonymous (nobody)
Summary: GCC 4.1.2 Win32 compilation failure

Initial Comment:
Ming GCC 4.1.2 (unofficial), Windows XP, latest wxLua snapshot.

In wxbind/src/image.cpp, in function 
wxLua_wxImageHistogram_iterator_Set_first() (cca line 2444) the:


    (*self)->first = val; // *** need to cast self to object from pointer

fails to compile. GCC complains that the left hand side is read-only.

Not knowing better I changed it to:

    unsigned long* aux = const_cast<unsigned long*>(&((*self)->first));
    *aux = val; // *** need to cast self to object from pointer



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=745324&aid=1733064&group_id=140042

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to