parameters: (self, type1, type2)
return_statement: return ret
docstring: Compare two types.
docstring_summary: Compare two types.
docstring_tokens: Compare two types .
function: def _cmp_type(self, type1, type2):
          """Compare two types."""
          attrs1 = type1[2]
          attrs2 = type2[2]
          # sort by type size
          ret = attrs1[0] - attrs2[0]
          # float is larger
          if not ret:
              ret = attrs1[1] - attrs2[1]
          # signed is larger
          if not ret:
              ret = attrs1[2] - attrs2[2]
          # reverse
          ret = -ret
          return ret
function_tokens: def _cmp_type ( self , type1 , type2 ) : attrs1 = type1 [ 2 ] attrs2 = type2 [ 2 ] # sort by type size ret = attrs1 [ 0 ] - attrs2 [ 0 ] # float is larger if not ret : ret = attrs1 [ 1 ] - attrs2 [ 1 ] # signed is larger if not ret : ret = attrs1 [ 2 ] - attrs2 [ 2 ] # reverse ret = - ret return ret