mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fix incorrect cast when parsing FTP connection port
This commit is contained in:
parent
12c091e0ce
commit
618c96339b
@ -558,7 +558,7 @@ Ftp::Response Ftp::DataChannel::open(Ftp::TransferMode mode)
|
||||
}
|
||||
|
||||
// Reconstruct connection port and address
|
||||
unsigned short port = static_cast<Uint8>(data[4] * 256) + data[5];
|
||||
unsigned short port = static_cast<Uint16>(data[4] * 256 + data[5]);
|
||||
IpAddress address(data[0],
|
||||
data[1],
|
||||
data[2],
|
||||
|
Loading…
Reference in New Issue
Block a user