~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2010-10-30 01:19:00 UTC
  • mto: (1892.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1893.
  • Revision ID: mordred@inaugust.com-20101030011900-2tdt8w9vt7a6pbk0
Fixed things to make things compile with clang

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    return 0;
39
39
  }
40
40
  return (unsigned_flag ?
41
 
          (uint64_t) value / (uint64_t) val2 :
 
41
          (int64_t)((uint64_t) value / (uint64_t) val2) :
42
42
          value / val2);
43
43
}
44
44