From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Set operations on bool-vectors Date: Sat, 21 Sep 2013 01:49:48 -0700 Message-ID: <523D5DAC.2000706@dancol.org> References: <523CD363.6020400@dancol.org> <87a9j6bp90.fsf@igel.home> <523D4D03.7010200@dancol.org> <8761tubmho.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Gs3Ltb8cuibCiFWVA9xPNalG9hxJUhMob" X-Trace: ger.gmane.org 1379753464 30318 80.91.229.3 (21 Sep 2013 08:51:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Sep 2013 08:51:04 +0000 (UTC) Cc: Emacs development discussions To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 21 10:51:07 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VNIuB-0006JZ-BE for ged-emacs-devel@m.gmane.org; Sat, 21 Sep 2013 10:51:07 +0200 Original-Received: from localhost ([::1]:59070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNIuB-00051J-16 for ged-emacs-devel@m.gmane.org; Sat, 21 Sep 2013 04:51:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNIu3-000512-0n for emacs-devel@gnu.org; Sat, 21 Sep 2013 04:51:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNItw-0007ZU-Sk for emacs-devel@gnu.org; Sat, 21 Sep 2013 04:50:58 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:46260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNItw-0007ZL-Mx for emacs-devel@gnu.org; Sat, 21 Sep 2013 04:50:52 -0400 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[192.168.1.52]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1VNItv-0003US-To; Sat, 21 Sep 2013 01:50:51 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <8761tubmho.fsf@igel.home> X-Enigmail-Version: 1.5.2 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163533 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Gs3Ltb8cuibCiFWVA9xPNalG9hxJUhMob Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 9/21/13 1:35 AM, Andreas Schwab wrote: > Daniel Colascione writes: >=20 >> On 9/21/13 12:36 AM, Andreas Schwab wrote: >>> Also, the return type should be EMACS_INT, >>> not ptrdiff_t. >> >> Well, vector_nbytes works with ptrdiff_t, and the allocation code work= s >> in EMACS_INT. I'm not sure the distinction actually matters in this c= ase. >=20 > ptrdiff_t may be smaller than EMACS_INT. We'll never overflow when we look at an already-allocated object --- but we _can_ overflow in the initial allocation calculation. I'll fix it. Thanks. --Gs3Ltb8cuibCiFWVA9xPNalG9hxJUhMob Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) iQIcBAEBAgAGBQJSPV2sAAoJEMAaIROpHW7IpToQAKvjto+99qoKiDO6f1pHhcQx KZjwsD7p56ICPuxX6pVysxH06rRAwKJqrzR1vOU5fSf0H5ESL02d2StgGHVqqGi+ HaG2F/1WhiYDuHVYBQRVZlDR6db3lHbyGkYs4zoxwuGIZ0T4Ctu2YFzGgeXPfHyV cPQm6I2KtKIqUsCbROUejdlJh8ndcol5dv7EFAhoW3mt9ohqa6Y5buXCejaQHdfD X3Qq7K8elpTT8kM5CFiT5LTomY7aWZIco5QjmoViisVTb0Kr38wFBCucQYwzMeAF 2a7c46BR7DSUe/H/w52lJeDge4sI8QDvqY5f/loonkzdmmup7rzFZCfeWs0w6+qh 9eiFSDWTlrIEu6GHbXWDPprA1uBQm9Fli+dyFTHaMuY3Vafgz1axcVgZIsaLbSJ8 51ud+DyC9wN7eM1pvK/wAv4nqCNrHOojCUnoM2QF8h+YvaKu323NlhYWBl7MMt+Q Bc6SJ7oTiCKX5UNkQcSrN93NU2SgMjfwenk/qIimfQmixNJ5ocnrUMr586L9O7Bd za7EwreENP5xv8qu7TUgcr9RIz1YomCI1PMuT0N9NpVmzisi/rLcjsMoQ7CXuocL gFcdRqLqX+64ETG8aoWXwXjjj/rvzXsV3uTYxPhF6ZFQsME9myJRyLW4vWYB1wQH Ycmje7IxhmK1PVavrjHy =0c8A -----END PGP SIGNATURE----- --Gs3Ltb8cuibCiFWVA9xPNalG9hxJUhMob--