--- pyid3lib.cc.orig 2003-02-16 15:50:20.000000000 -0800
+++ pyid3lib.cc 2018-02-02 23:52:19.000000000 -0800
static PySequenceMethods tag_as_sequence = {
- (intintargfunc)id3_slice,
- (intobjargproc)id3_ass_item,
- (intintobjargproc)id3_ass_slice,
+ (ssizeargfunc)id3_item,
+ (ssizessizeargfunc)id3_slice,
+ (ssizeobjargproc)id3_ass_item,
+ (ssizessizeobjargproc)id3_ass_slice,
(objobjproc)id3_contains,
static ID3_Frame* frame_from_dict( ID3_FrameID fid, PyObject* dict )
fld = frame->GetField( ID3FN_TEXT );
- if ( (slash = strchr( str, '/' )) != NULL )
+ if ( (slash = (char *) strchr( str, '/' )) != NULL )
result = Py_BuildValue( "ii", atoi( str ), atoi( slash+1 ) );
result = Py_BuildValue( "(i)", atoi( str ) );