This is the mail archive of the
mailing list for the libstdc++ project.
Re: operands to min and max must have the same type...
- From: Phil Edwards <phil at jaj dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Tue, 4 Mar 2003 15:38:50 -0500
- Subject: Re: operands to min and max must have the same type...
- References: <firstname.lastname@example.org>
On Fri, Feb 28, 2003 at 07:37:04PM -0300, Alexandre Oliva wrote:
> If we do arithmetic operations with size or ptrdiff types and they
> happen to be built-in types narrower than int, they get promoted to
> int, and then we can't find a match for min and max unless we do it on
> both operands, which we don't. Here's a patch that cures this. Ok to
> install if it completes a cross build to a target that has 16-bit
> pointers and 32-bit integers?
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams