delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/18/13:46:37

Message-ID: <392412A1.5A67D1@mtu-net.ru>
Date: Thu, 18 May 2000 19:56:17 +0400
From: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
X-Mailer: Mozilla 4.72 [en] (Win95; I)
X-Accept-Language: ru,en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: djgpp AT delorie DOT com
Subject: Re: C++, complex, etc
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000518184200 DOT 15189T-100000 AT is>
X-Recipient: eliz AT is DOT elta DOT co DOT il
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> 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.

Well, it's something I glad to hear. That doesn't meand I must rewrite all
my programs entirely. Just patch some pieces.

-- 
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror:   http://members.xoom.com/alexfru


- Raw text -


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