diff options
author | YRabbit <rabbit@yrabbit.cyou> | 2021-12-26 12:05:35 +1000 |
---|---|---|
committer | YRabbit <rabbit@yrabbit.cyou> | 2021-12-26 12:05:35 +1000 |
commit | e6b787954216ec220698bf7a6264f19bb6102d73 (patch) | |
tree | abe9d3587957c94c662213a366fb1e59f460da1f | |
parent | 643b6971780adf8a6c5623851d9fff9f6a413113 (diff) | |
download | nextpnr-e6b787954216ec220698bf7a6264f19bb6102d73.tar.gz nextpnr-e6b787954216ec220698bf7a6264f19bb6102d73.tar.bz2 nextpnr-e6b787954216ec220698bf7a6264f19bb6102d73.zip |
gowin: Initializing the grid dimensions
gridDimX and gridDimY are not initialized explicitly, which leads to
effects when the design is reloaded, say, from the GUI.
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
-rw-r--r-- | gowin/arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gowin/arch.h b/gowin/arch.h index 931a0aa1..9f969f54 100644 --- a/gowin/arch.h +++ b/gowin/arch.h @@ -298,7 +298,7 @@ struct Arch : BaseArch<ArchRanges> dict<DecalId, std::vector<GraphicElement>> decal_graphics; - int gridDimX, gridDimY; + int gridDimX = 0, gridDimY = 0; std::vector<std::vector<int>> tileBelDimZ; std::vector<std::vector<int>> tilePipDimZ; |