Commit 1569e280 authored by Jean-Paul Chaput's avatar Jean-Paul Chaput
Browse files

In CRL::GdsParser, GDS layers indexes up to 1024, just in case.

parent f3ccf31e
...@@ -723,10 +723,10 @@ namespace { ...@@ -723,10 +723,10 @@ namespace {
void GdsStream::_staticInit () void GdsStream::_staticInit ()
{ {
_gdsLayerTable = vector<const Layer*>( 256, NULL ); _gdsLayerTable = vector<const Layer*>( 1024, NULL );
for ( const BasicLayer* layer : DataBase::getDB()->getTechnology()->getBasicLayers() ) { for ( const BasicLayer* layer : DataBase::getDB()->getTechnology()->getBasicLayers() ) {
uint16_t gdsNumber = layer->getGds2Layer(); uint16_t gdsNumber = layer->getGds2Layer();
if (gdsNumber < 256) _gdsLayerTable[gdsNumber] = layer; if (gdsNumber < 1024) _gdsLayerTable[gdsNumber] = layer;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment