diff options
author | gatecat <gatecat@ds0.me> | 2022-08-10 18:58:22 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-08-10 18:58:22 +0100 |
commit | c60fb94b6c45ca74632e972995555170063b3a03 (patch) | |
tree | b6bc6fe3cecc6962e12e61b9febb5c85e06960ed /gowin/gfx.cc | |
parent | a20d21bd135aceb9155eaee714488d1d76c60898 (diff) | |
download | nextpnr-c60fb94b6c45ca74632e972995555170063b3a03.tar.gz nextpnr-c60fb94b6c45ca74632e972995555170063b3a03.tar.bz2 nextpnr-c60fb94b6c45ca74632e972995555170063b3a03.zip |
refactor: Use IdString::in instead of || chains
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'gowin/gfx.cc')
-rw-r--r-- | gowin/gfx.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gowin/gfx.cc b/gowin/gfx.cc index 9c9bc3fc..048ae62e 100644 --- a/gowin/gfx.cc +++ b/gowin/gfx.cc @@ -4969,7 +4969,7 @@ void gfxSetPipDefaultDecal(Arch *arch, PipInfo &pip) // create if absent if (arch->decal_graphics.count(active_id) == 0) { // clock? - if (dst_loc_id == id_GT00 || dst_loc_id == id_GT10) { + if (dst_loc_id.in(id_GT00, id_GT10)) { WireInfo &wi = arch->wire_info(pip.srcWire); if (wi.type.str(arch).substr(0, 3) != "UNK") { // create pip |