X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fstats.cc;h=29d9a425196ed195f913c4b76e95f9b33512e0ae;hb=7a7a973ec64019907188c581b1d1d028dca172b9;hp=662edafb66c44055f207bd313f7f84d7b9455fe3;hpb=674c7578fa870c3b57e81e765c355ce98434b310;p=awesomized%2Flibmemcached diff --git a/libmemcached/stats.cc b/libmemcached/stats.cc index 662edafb..29d9a425 100644 --- a/libmemcached/stats.cc +++ b/libmemcached/stats.cc @@ -95,11 +95,11 @@ static memcached_return_t set_data(memcached_stat_st *memc_stat, const char *key if (temp <= INT32_MAX and ( sizeof(pid_t) == sizeof(int32_t) )) { - memc_stat->pid= temp; + memc_stat->pid= pid_t(temp); } else if (temp > -1) { - memc_stat->pid= temp; + memc_stat->pid= pid_t(temp); } else { @@ -428,7 +428,7 @@ static memcached_return_t binary_stats_fetch(memcached_stat_st *memc_stat, * memcached_response will decrement the counter, so I need to reset it.. * todo: look at this and try to find a better solution. * */ - instance->cursor_active= 0; + instance->cursor_active_= 0; return MEMCACHED_SUCCESS; }