~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/item_func.cc

  • Committer: Brian Aker
  • Date: 2008-07-07 14:25:25 UTC
  • mto: (77.1.25 codestyle)
  • mto: This revision was merged to the branch mainline in revision 82.
  • Revision ID: brian@tangent.org-20080707142525-xzy2nl3ie2ebwfln
LL() cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1752
1752
    return 0;
1753
1753
  }
1754
1754
  null_value=0;
1755
 
  return (shift < sizeof(longlong)*8 ? (longlong) res : LL(0));
 
1755
  return (shift < sizeof(longlong)*8 ? (longlong) res : 0LL);
1756
1756
}
1757
1757
 
1758
1758
longlong Item_func_shift_right::val_int()
1767
1767
    return 0;
1768
1768
  }
1769
1769
  null_value=0;
1770
 
  return (shift < sizeof(longlong)*8 ? (longlong) res : LL(0));
 
1770
  return (shift < sizeof(longlong)*8 ? (longlong) res : 0LL);
1771
1771
}
1772
1772
 
1773
1773
 
2681
2681
                              find->length(), 0);
2682
2682
        enum_bit=0;
2683
2683
        if (enum_value)
2684
 
          enum_bit=LL(1) << (enum_value-1);
 
2684
          enum_bit=1LL << (enum_value-1);
2685
2685
      }
2686
2686
    }
2687
2687
  }
2752
2752
               wc == (my_wc_t) separator)
2753
2753
        return (longlong) ++position;
2754
2754
      else
2755
 
        return LL(0);
 
2755
        return 0LL;
2756
2756
    }
2757
2757
  }
2758
2758
  return 0;
3710
3710
longlong user_var_entry::val_int(my_bool *null_value) const
3711
3711
{
3712
3712
  if ((*null_value= (value == 0)))
3713
 
    return LL(0);
 
3713
    return 0LL;
3714
3714
 
3715
3715
  switch (type) {
3716
3716
  case REAL_RESULT:
3732
3732
    DBUG_ASSERT(1);                             // Impossible
3733
3733
    break;
3734
3734
  }
3735
 
  return LL(0);                                 // Impossible
 
3735
  return 0LL;                                   // Impossible
3736
3736
}
3737
3737
 
3738
3738
 
4166
4166
{
4167
4167
  DBUG_ASSERT(fixed == 1);
4168
4168
  if (!var_entry)
4169
 
    return LL(0);                               // No such variable
 
4169
    return 0LL;                         // No such variable
4170
4170
  return (var_entry->val_int(&null_value));
4171
4171
}
4172
4172