mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Can't read negative number of bytes.
This completely ignores error handling, which probably should be added. The code behavior doesn't change, as the existing comparisons and asserts already promoted the signed value to unsigned.
This commit is contained in:
@@ -115,7 +115,7 @@ public:
|
||||
bool Listen( int port );
|
||||
void Close();
|
||||
|
||||
const char* Read( int& len, IpAddress& addr );
|
||||
const char* Read( size_t& len, IpAddress& addr );
|
||||
|
||||
UdpListen( const UdpListen& ) = delete;
|
||||
UdpListen( UdpListen&& ) = delete;
|
||||
|
||||
Reference in New Issue
Block a user