Commit 52321d4c7f1662012e716f946588a420f5a3c203
1 parent
41d31bd0
para check bug fix
Showing
1 changed file
with
2 additions
and
2 deletions
calc_gate.c
| @@ -80,10 +80,10 @@ const coefficient_infor coefficient={ | @@ -80,10 +80,10 @@ const coefficient_infor coefficient={ | ||
| 80 | */ | 80 | */ |
| 81 | int data_validity_check(struct param_gate *param) | 81 | int data_validity_check(struct param_gate *param) |
| 82 | { | 82 | { |
| 83 | - if(param->wingwall <warped_wingwall || param->wingwall>parallel_wingwall){ | 83 | + if(param->wingwall >=warped_wingwall || param->wingwall<=parallel_wingwall){ |
| 84 | return -1; | 84 | return -1; |
| 85 | } | 85 | } |
| 86 | - if(!(param->drop_step = 0 || param->drop_step >1)){ | 86 | + if(!(param->drop_step = 0 || param->drop_step =1)){ |
| 87 | return -1; | 87 | return -1; |
| 88 | } | 88 | } |
| 89 | if(param->openning_height_of_gate <-0.0000001){ | 89 | if(param->openning_height_of_gate <-0.0000001){ |