summaryrefslogtreecommitdiff
path: root/toxcore/TCP_client.h
diff options
context:
space:
mode:
authorzugz (tox) <mbays+tox@sdf.org>2020-02-28 00:00:00 +0000
committerzugz (tox) <mbays+tox@sdf.org>2020-03-14 00:00:02 +0000
commitc644ef76810f8db61bce3f52d36a1a6a25e47683 (patch)
tree1a4c5ed13f1a3450e3a005746ba6bb0d1af7beaf /toxcore/TCP_client.h
parente6714909898d7e5fe6b35b6d109e584e6c5858b0 (diff)
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.
Diffstat (limited to 'toxcore/TCP_client.h')
-rw-r--r--toxcore/TCP_client.h2
1 files changed, 1 insertions, 1 deletions
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);
103 103
104/* Set the number that will be used as an argument in the callbacks related to con_id. 104/* Set the number that will be used as an argument in the callbacks related to con_id.
105 * 105 *
106 * When not set by this function, the number is ~0. 106 * When not set by this function, the number is -1.
107 * 107 *
108 * return 0 on success. 108 * return 0 on success.
109 * return -1 on failure. 109 * return -1 on failure.