From: <ds...@us...> - 2008-04-19 14:15:47
|
Revision: 5049 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5049&view=rev Author: dsdale Date: 2008-04-19 07:15:43 -0700 (Sat, 19 Apr 2008) Log Message: ----------- cleanup conversion of string to char*, avoid deprecation warnings during build Modified Paths: -------------- trunk/matplotlib/src/_backend_agg.cpp Modified: trunk/matplotlib/src/_backend_agg.cpp =================================================================== --- trunk/matplotlib/src/_backend_agg.cpp 2008-04-19 05:35:00 UTC (rev 5048) +++ trunk/matplotlib/src/_backend_agg.cpp 2008-04-19 14:15:43 UTC (rev 5049) @@ -1308,7 +1308,7 @@ throw Py::TypeError("Object does not appear to be a 8-bit string path or a Python file-like object"); } - PyObject_CallFunction(write_method, "s#", pixBuffer, NUMBYTES); + PyObject_CallFunction(write_method, (char *)"s#", pixBuffer, NUMBYTES); Py_XDECREF(write_method); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |