Fixed handling of foo.__TECHMAP_...
authorClifford Wolf <clifford@clifford.at>
Thu, 15 Jan 2015 12:36:57 +0000 (13:36 +0100)
committerClifford Wolf <clifford@clifford.at>
Thu, 15 Jan 2015 12:36:57 +0000 (13:36 +0100)
passes/techmap/techmap.cc

index 94dd4d42c006888688e963ab638f96793f56cfbb..b1a40b25e345abd3ce61d8d0aa893739a7c71483 100644 (file)
@@ -129,7 +129,7 @@ struct TechmapWorker
                                continue;
 
                        const char *q = strrchr(p+1, '.');
-                       p = q ? q : p+1;
+                       p = q ? q+1 : p+1;
 
                        if (!strncmp(p, "_TECHMAP_", 9)) {
                                TechmapWireData record;