atoi -> stoi as per @daveshah1
authorEddie Hung <eddie@fpgeh.com>
Mon, 8 Jul 2019 17:48:10 +0000 (10:48 -0700)
committerEddie Hung <eddie@fpgeh.com>
Mon, 8 Jul 2019 17:48:10 +0000 (10:48 -0700)
techlibs/xilinx/synth_xilinx.cc

index 0a30848aa6c06444d9799fee8960f0915a482b73..c18c3918f4130977bb89b2432ed492ad63b8b269 100644 (file)
@@ -194,7 +194,7 @@ struct SynthXilinxPass : public ScriptPass
                                continue;
                        }
                        if (args[argidx] == "-widemux" && argidx+1 < args.size()) {
-                               widemux = atoi(args[++argidx].c_str());
+                               widemux = std::stoi(args[++argidx]);
                                continue;
                        }
                        if (args[argidx] == "-abc9") {