This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: operands to min and max must have the same type...


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?


\begin{rth}
Ok.
\end{rth}

-- 
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]