else if (to1 - from1 > to2 - from2) cmp = 1;
inline void Compare_ranges	(	int from1, int to1,		// First object's range.	int from2, int to2,		// Second object's range.					// Returns:	int& cmp,			// -1 if 1st < 2nd, 1 if 1st > 2nd,					//   0 if equal.	bool& overlap			// true returned if they overlap.	)	{	if (to1 < from2)		{		overlap = false;		cmp = -1;		}	else if (to2 < from1)		{		overlap = false;		cmp = 1;		}	else				// X's overlap.		{		overlap = true;		if (from1 < from2)			cmp = -1;		else if (from1 > from2)			cmp = 1;		else if (to1 - from1 < to2 - from2)			cmp = -1;		else if (to1 - from1 > to2 - from2)			cmp = 1;		else			cmp = 0;		}	}