Corrected the tech loader, which was failing to set the file
prefix when doing a reentrant load, causing include files to not be found. Fixed a divide-by-zero issue that occurs when some tech file sections are not loaded to the abovementioned error.
This commit is contained in:
parent
0022c502c8
commit
00e3bbd12a
|
|
@ -1758,7 +1758,8 @@ cifComputeHalo(
|
|||
if (maxGrow > maxShrink)
|
||||
style->cs_radius = 2*maxGrow;
|
||||
else style->cs_radius = 2*maxShrink;
|
||||
style->cs_radius /= style->cs_scaleFactor;
|
||||
if (style->cs_scaleFactor > 0)
|
||||
style->cs_radius /= style->cs_scaleFactor;
|
||||
style->cs_radius++;
|
||||
|
||||
/* TxPrintf("Radius for %s CIF is %d.\n",
|
||||
|
|
|
|||
16
utils/tech.c
16
utils/tech.c
|
|
@ -449,6 +449,14 @@ TechLoad(filename, initmask)
|
|||
return (FALSE);
|
||||
}
|
||||
|
||||
/* TECH_VERSION in the filename is deprecated as of magic version */
|
||||
/* 7.2.27; TECH_VERSION is no longer defined in the utils/Makefile.*/
|
||||
/* It has been changed to TECH_FORMAT_VERSION, left at version 27, */
|
||||
/* and placed in utils/tech.h. It is needed for backward */
|
||||
/* compatibility with the old *.tech27 file format. */
|
||||
|
||||
(void) sprintf(suffix, ".tech");
|
||||
|
||||
/* If NULL is passed to argument "filename", this is a reload and */
|
||||
/* we should read TechFileName verbatim. */
|
||||
|
||||
|
|
@ -477,14 +485,6 @@ TechLoad(filename, initmask)
|
|||
|
||||
tf = (FILE *)NULL;
|
||||
|
||||
/* TECH_VERSION in the filename is deprecated as of magic version */
|
||||
/* 7.2.27; TECH_VERSION is no longer defined in the utils/Makefile. */
|
||||
/* It has been changed to TECH_FORMAT_VERSION, left at version 27, */
|
||||
/* and placed in utils/tech.h. It is needed for backward */
|
||||
/* compatibility with *.tech27 files, of which there are many. */
|
||||
|
||||
(void) sprintf(suffix, ".tech");
|
||||
|
||||
/* Added 1/20/2015 to correspond to change to PaLockOpen(); */
|
||||
/* Always strip suffix from filename when suffix is specified. */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue