~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2010-11-22 00:16:44 UTC
  • mto: (1945.2.1 quick)
  • mto: This revision was merged to the branch mainline in revision 1947.
  • Revision ID: brian@tangent.org-20101122001644-pi6jv0d65e82xn38
Merge in lock refactor, this just encapsulates.

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
}