~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/mod.cc

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
      ((uint64_t) value) % ((uint64_t) val2) : ((uint64_t) value) % val2;
49
49
  else
50
50
    result= args[1]->unsigned_flag ?
51
 
      value % ((uint64_t) val2) : value % val2;
 
51
      (int64_t)(value % ((uint64_t) val2)) : (int64_t)(value % val2);
52
52
 
53
53
  return result;
54
54
}