~mingqiangzhuang/libmemcached/icc-memslap

« back to all changes in this revision

Viewing changes to clients/ms_conn.c

  • Committer: Xiaoyun Mao
  • Date: 2010-01-19 08:37:26 UTC
  • Revision ID: xmao@lab14.schoonerinfotech.net-20100119083726-abn736f36zto1opq
Explicitely cast 'int' to avoid warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
900
900
  if (ms_setting.rep_write_srv > 0)
901
901
  {
902
902
    srv_idx= c->cur_idx % ms_setting.srv_cnt;
903
 
    srv_conn_cnt= (int)(ms_setting.sock_per_conn  * ms_setting.nconns);
 
903
    srv_conn_cnt= (int32_t)(ms_setting.sock_per_conn * (int)ms_setting.nconns);
904
904
  }
905
905
  else
906
906
  {
1028
1028
      if (ms_setting.rep_write_srv > 0)
1029
1029
      {
1030
1030
        srv_idx= i % ms_setting.srv_cnt;
1031
 
        srv_conn_cnt= (int)(ms_setting.sock_per_conn * ms_setting.nconns);
 
1031
        srv_conn_cnt= ms_setting.sock_per_conn * (int)ms_setting.nconns;
1032
1032
      }
1033
1033
      else
1034
1034
      {