delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/18/12:02:29

Date: Thu, 18 May 2000 18:43:30 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
cc: djgpp AT delorie DOT com
Subject: Re: C++, complex, etc
In-Reply-To: <3923FEC5.B836D26B@mtu-net.ru>
Message-ID: <Pine.SUN.3.91.1000518184200.15189T-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 18 May 2000, Alexei A. Frounze wrote:

> > In general, you don't want to assign int to size_t or vice versa.  Mixing
> > signed and unsigned means trouble.
> 
> If I'm 100% sure my "int" is positive (greater or equal 0 and less than
> INT_MAX), will I have problems?

No, in that case it will work, assuming that sizeof(int) <= sizeof(size_t).

> Again, if I have "int" in the 0...INT_MAX range, do I have those problems?

Again, no, under the same assumption.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019