~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Nathan Williams
  • Date: 2009-06-24 18:16:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1082.
  • Revision ID: nathanlws@gmail.com-20090624181614-cju6aaqmn2u5w2nw
Converted all usages of cmax in drizzled/field/ and drizzled/function/ to std::max.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <drizzled/server_includes.h>
21
21
#include <drizzled/function/math/mod.h>
22
22
 
 
23
#include <algorithm>
 
24
 
 
25
using namespace std;
 
26
 
23
27
int64_t Item_func_mod::int_op()
24
28
{
25
29
  assert(fixed == 1);
88
92
 
89
93
void Item_func_mod::result_precision()
90
94
{
91
 
  decimals= cmax(args[0]->decimals, args[1]->decimals);
92
 
  max_length= cmax(args[0]->max_length, args[1]->max_length);
 
95
  decimals= max(args[0]->decimals, args[1]->decimals);
 
96
  max_length= max(args[0]->max_length, args[1]->max_length);
93
97
}
94
98
 
95
99