~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_increment.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:
45
45
String *MemcachedIncrement::val_str(String *str)
46
46
{
47
47
  memcached_return rc;
48
 
  int64_t offset;
 
48
  uint32_t offset;
49
49
  uint64_t value;
50
50
  size_t val_len;
51
51
  char tmp_buff[32]= "";
61
61
 
62
62
  if (arg_count == 2) {
63
63
    inc_str= args[1]->val_str(str);
64
 
    offset= atoi(inc_str->c_ptr());
 
64
    offset= (uint32_t)atoi(inc_str->c_ptr());
65
65
  }
66
66
  else
67
67
  {