~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_decrement.cc

Merge trunk:

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
String *MemcachedDecrement::val_str(String *str)
45
45
{
46
46
  memcached_return rc;
47
 
  int64_t offset;
 
47
  uint32_t offset;
48
48
  uint64_t value;
49
49
  size_t val_len;
50
50
  char tmp_buff[32]= "";
61
61
 
62
62
  if (arg_count == 2) {
63
63
    dec_str= args[1]->val_str(str);
64
 
    offset= atoi(dec_str->c_ptr());
 
64
    offset= static_cast<uint32_t>(atoi(dec_str->c_ptr()));
65
65
  }
66
66
  else
67
67
  {