diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 00:32:38 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 00:32:38 +0900 |
commit | bcaa9945cdb030ecbf871a4d4dcef5012d773727 (patch) | |
tree | ae02552e0ad038e0da4ede3df98ba542db9e6b17 | |
parent | 5db5673ed804f3957c40438a95b62612d78978af (diff) |
another divide-by-zero error
-rw-r--r-- | error_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/error_utils.c b/error_utils.c index 5edea83..ec5e351 100644 --- a/error_utils.c +++ b/error_utils.c @@ -881,7 +881,9 @@ int Error_check(ChannelStruct ChannelStateToTest[max_channels]) check_another_max_value (globals.Flash.max_freq_for_high_ot[i], &globals.Constraints.err_max_freq[i], ChannelStateToTest[i].frequency, PRF_limited_by_offset, &report_error); } - check_another_max_value (0.95/fabs(ChannelStateToTest[i].delay), &globals.Constraints.err_max_freq[i], ChannelStateToTest[i].frequency, Delay_Exceeds_95Period, &report_error); + if (fabs(ChannelStateToTest[i].delay) > 0.0) { + check_another_max_value (0.95/fabs(ChannelStateToTest[i].delay), &globals.Constraints.err_max_freq[i], ChannelStateToTest[i].frequency, Delay_Exceeds_95Period, &report_error); + } if (globals.Flash.min_pw[i] > 0.0) { |