diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-05-01 15:06:46 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-05-01 15:06:46 +0200 |
commit | 93b7fd77449ea385d12db71fd8205312441535d9 (patch) | |
tree | e6f233e6bcaeb67367e22c8afd9be3bbff47029b /passes/cmds | |
parent | 32ff37bb5a8cec79e8cbcfac4075cc553fa9a394 (diff) | |
download | yosys-93b7fd77449ea385d12db71fd8205312441535d9.tar.gz yosys-93b7fd77449ea385d12db71fd8205312441535d9.tar.bz2 yosys-93b7fd77449ea385d12db71fd8205312441535d9.zip |
Fix floating point exception in qwp, fixes #923
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'passes/cmds')
-rw-r--r-- | passes/cmds/qwp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/cmds/qwp.cc b/passes/cmds/qwp.cc index 1c64a7b77..adbe89e31 100644 --- a/passes/cmds/qwp.cc +++ b/passes/cmds/qwp.cc @@ -291,7 +291,7 @@ struct QwpWorker // gaussian elimination for (int i = 0; i < N; i++) { - if (config.verbose && ((i+1) % (N/15)) == 0) + if (config.verbose && N > 15 && ((i+1) % (N/15)) == 0) log("> Solved %d%%: %d/%d\n", (100*(i+1))/N, i+1, N); // find best row |