delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/09/05/23:26:48

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Tue, 6 Sep 2016 05:37:48 +0200 (CEST)
X-X-Sender: igor2 AT igor2priv
To: geda-user AT delorie DOT com
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: [geda-user] pcb bugreport: ID type
Message-ID: <alpine.DEB.2.00.1609060529360.7286@igor2priv>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com

Hi all,

in the 20140316 release of mainline this bug is still present: 
ANYOBJECTFIELDS has the ID field as long int, but create.c counts IDs of 
new objects in an int.

(This won't cause problems on the usual systems (with >=32 bit ints), 
but the C standard permits int to be 16 bits wide in which case create.c 
would start reusing IDs after 32767 objects. In the same time there seems 
to be no drawback using long int in create.c)

I propose using long int ID in create.c. Fixed in pcb-rnd in r2938.

Regards,

Igor2


- Raw text -


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