~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/shift.cc

  • Committer: Brian Aker
  • Date: 2009-02-21 00:18:15 UTC
  • Revision ID: brian@tangent.org-20090221001815-x20e8h71e984lvs1
Completion (?) of uint conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  assert(fixed == 1);
29
29
  uint32_t shift;
30
30
  uint64_t res= ((uint64_t) args[0]->val_int() <<
31
 
                  (shift=(uint) args[1]->val_int()));
 
31
                  (shift=(uint32_t) args[1]->val_int()));
32
32
  if (args[0]->null_value || args[1]->null_value)
33
33
  {
34
34
    null_value=1;
43
43
  assert(fixed == 1);
44
44
  uint32_t shift;
45
45
  uint64_t res= (uint64_t) args[0]->val_int() >>
46
 
    (shift=(uint) args[1]->val_int());
 
46
    (shift=(uint32_t) args[1]->val_int());
47
47
  if (args[0]->null_value || args[1]->null_value)
48
48
  {
49
49
    null_value=1;