mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Adds explicit type casting to silence MSVC compiler warnings about
"possible loss of data". Fixes #995 (together with r37008, r37009)
This commit is contained in:
parent
9d11605113
commit
0bf41f28de
2 changed files with 2 additions and 2 deletions
|
|
@ -320,7 +320,7 @@ int FPNetworkControl::cc_report_drop() {
|
|||
value of ssthresh is held constant.
|
||||
*/
|
||||
int probes_outstanding = this->probes_sent - this->responses_recv - this->probes_timedout;
|
||||
this->cc_ssthresh = MAX(probes_outstanding, OSSCAN_INITIAL_CWND);
|
||||
this->cc_ssthresh = (float)MAX(probes_outstanding, OSSCAN_INITIAL_CWND);
|
||||
this->cc_cwnd = OSSCAN_INITIAL_CWND;
|
||||
return OP_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue