瀏覽代碼

Fix a compile warning in config.c reported by sebastian

Nick Mathewson 13 年之前
父節點
當前提交
1017322b59
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/or/config.c

+ 2 - 2
src/or/config.c

@@ -5057,8 +5057,8 @@ parse_client_port_config(smartlist_t *out,
       if (elt_sl_idx == 0)
         continue; /* Skip addr:port */
       if (!strcasecmpstart(elt, "SessionGroup=")) {
-        int group = tor_parse_long(elt+strlen("SessionGroup="),
-                                   10, 0, INT_MAX, &ok, NULL);
+        int group = (int)tor_parse_long(elt+strlen("SessionGroup="),
+                                        10, 0, INT_MAX, &ok, NULL);
         if (!ok) {
           log_warn(LD_CONFIG, "Invalid %sPort option '%s'",
                    portname, escaped(elt));