--- pyid3lib.cc.orig	2003-02-16 15:50:20.000000000 -0800
+++ pyid3lib.cc	2018-02-02 23:52:19.000000000 -0800
@@ -80,13 +80,13 @@
 
 
 static PySequenceMethods tag_as_sequence = {
-    (inquiry)id3_length,
+    (lenfunc)id3_length,
     NULL,
     NULL,
-    (intargfunc)id3_item,
-    (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,
     NULL,
     NULL,
@@ -824,7 +824,7 @@
 static ID3_Frame* frame_from_dict( ID3_FrameID fid, PyObject* dict )
 {
     char* data;
-    int size;
+    Py_ssize_t size;
     
     ID3_Field* field;
     ID3_FieldID flid;
@@ -1054,7 +1054,7 @@
             fld = frame->GetField( ID3FN_TEXT );
             str = fld->GetRawText();
             
-            if ( (slash = strchr( str, '/' )) != NULL )
+            if ( (slash = (char *) strchr( str, '/' )) != NULL )
                 result = Py_BuildValue( "ii", atoi( str ), atoi( slash+1 ) );
             else
                 result = Py_BuildValue( "(i)", atoi( str ) );
