From 39bbb8d9cfb0258b1e65dc98177e0773a19e4eb0 Mon Sep 17 00:00:00 2001 From: rl1987 Date: Mon, 4 Jun 2018 11:56:37 +0300 Subject: Avoid casting smartlist index implicitly --- src/or/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/control.c') diff --git a/src/or/control.c b/src/or/control.c index 0d637dce7a..95b16cf5a8 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -4624,7 +4624,7 @@ handle_control_add_onion(control_connection_t *conn, static const char *max_s_prefix = "MaxStreams="; static const char *auth_prefix = "ClientAuth="; - const char *arg = smartlist_get(args, i); + const char *arg = smartlist_get(args, (int)i); if (!strcasecmpstart(arg, port_prefix)) { /* "Port=VIRTPORT[,TARGET]". */ const char *port_str = arg + strlen(port_prefix); -- cgit v1.2.3-54-g00ecf