From: John L. <jr...@us...> - 2009-06-23 23:08:26
|
Update of /cvsroot/wxlua/wxLua/modules/wxlua/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv14130/wxLua/modules/wxlua/src Modified Files: wxlstate.cpp Log Message: Fix for MSVC6 release compile crash. Somehow the compiler is not concatenating wxStrings and literal char "strings" properly. Use wxString::Printf() instead. Index: wxlstate.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxlua/src/wxlstate.cpp,v retrieving revision 1.181 retrieving revision 1.182 diff -C2 -d -r1.181 -r1.182 *** wxlstate.cpp 19 May 2009 03:20:53 -0000 1.181 --- wxlstate.cpp 23 Jun 2009 23:08:12 -0000 1.182 *************** *** 329,333 **** } ! wxString msg = msg_ + wxT("\nFunction called: '") + argMsg + wxT("'") + funcArgs; wxlua_error(L, msg); } --- 329,334 ---- } ! wxString msg; ! msg.Printf(wxT("%s\nFunction called: '%s'%s"), msg_.c_str(), argMsg.c_str(), funcArgs.c_str()); wxlua_error(L, msg); } |