[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: segmentation fault in pcb



> Well, I would actually try it as:
> 
>         if (pin->Number && strcmp(pin->Number, "1") == 0)
>  	{
>    	  pin1x = (double) pin->X;
> 
> Oh the beauty of C ;-)

Well, I work on GCC as my full time job, and I've gotten into the
[bad] habit of doing some of its optimizations for it.  I pulled that
one out because otherwise (1) you'd have to test it twice, and (2)
there wouldn't be a good place to put that comment ;-)