~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_decimal.h

  • 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:
166
166
inline uint32_t my_decimal_length_to_precision(uint32_t length, uint32_t scale,
167
167
                                           bool unsigned_flag)
168
168
{
169
 
  return (uint) (length - (scale>0 ? 1:0) - (unsigned_flag ? 0:1));
 
169
  return (uint32_t) (length - (scale>0 ? 1:0) - (unsigned_flag ? 0:1));
170
170
}
171
171
 
172
172
inline uint32_t my_decimal_precision_to_length(uint32_t precision, uint8_t scale,