]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compile on Snow Leopard
authorSebastian Hahn <sebastian@torproject.org>
Tue, 15 Sep 2009 08:33:58 +0000 (10:33 +0200)
committerRoger Dingledine <arma@torproject.org>
Tue, 15 Sep 2009 11:13:36 +0000 (07:13 -0400)
src/or/dirvote.c

index c2f0a3344844a9685702a3431c8ac6fd0e678189..358246ae9d77e9ab549b7d4b843cbf819a73b3d9 100644 (file)
@@ -560,7 +560,7 @@ dirvote_compute_params(smartlist_t *votes)
   cur_param = smartlist_get(param_list, 0);
   eq = strchr(cur_param, '=');
   tor_assert(eq);
-  cur_param_len = eq+1 - cur_param;
+  cur_param_len = (int)(eq+1 - cur_param);
 
   output = smartlist_create();
 
@@ -588,7 +588,7 @@ dirvote_compute_params(smartlist_t *votes)
       i = 0;
       if (next_param) {
         eq = strchr(next_param, '=');
-        cur_param_len = eq+1 - next_param;
+        cur_param_len = (int)(eq+1 - next_param);
       }
     }
   } SMARTLIST_FOREACH_END(param);