[patch] size_t related bug fixes

Panu Matilainen pmatilai at laiskiainen.org
Mon Jun 12 08:23:01 PDT 2006


On Mon, 2006-06-12 at 16:57 +0200, Ralf Corsepius wrote:
> Hi again,
> 
> Now, some size_t related bug fixes, addressing to "unsigned vs. signed
> types" issues.

Small thinko there, 

-      if ((stop < 0) || (stop > size)) stop = size;
+      if ((stop != string::npos) || (stop > size)) stop = size;

..should've been
+      if ((stop == string::npos) || (stop > size)) stop = size;

Applied with the above fix, thanks.

	- Panu -





More information about the Apt-Rpm mailing list