From c644ef76810f8db61bce3f52d36a1a6a25e47683 Mon Sep 17 00:00:00 2001 From: "zugz (tox)" Date: Fri, 28 Feb 2020 00:00:00 +0000 Subject: use -1 rather than ~0 in unsigned integer types Using ~0 involves a bitwise operation on int, so depends on the internal representation of signed integers. --- toxcore/TCP_client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/TCP_client.h') diff --git a/toxcore/TCP_client.h b/toxcore/TCP_client.h index 9d43d642..6a9bf8e2 100644 --- a/toxcore/TCP_client.h +++ b/toxcore/TCP_client.h @@ -103,7 +103,7 @@ int send_disconnect_request(TCP_Client_Connection *con, uint8_t con_id); /* Set the number that will be used as an argument in the callbacks related to con_id. * - * When not set by this function, the number is ~0. + * When not set by this function, the number is -1. * * return 0 on success. * return -1 on failure. -- cgit v1.2.3