~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_decrement.cc

  • Committer: Trond Norbye
  • Date: 2009-11-16 20:31:54 UTC
  • mto: (1223.1.3 push)
  • mto: This revision was merged to the branch mainline in revision 1224.
  • Revision ID: trond.norbye@sun.com-20091116203154-vy8r5kzjt4zfq6pv
Offset to memcached_increment and decrement should be uint32_t

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= (uint32_t)atoi(dec_str->c_ptr());
65
65
  }
66
66
  else
67
67
  {