~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/tztime.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:
159
159
    rem -= SECS_PER_DAY;
160
160
    days++;
161
161
  }
162
 
  tmp->hour= (uint)(rem / SECS_PER_HOUR);
 
162
  tmp->hour= (uint32_t)(rem / SECS_PER_HOUR);
163
163
  rem= rem % SECS_PER_HOUR;
164
 
  tmp->minute= (uint)(rem / SECS_PER_MIN);
 
164
  tmp->minute= (uint32_t)(rem / SECS_PER_MIN);
165
165
  /*
166
166
    A positive leap second requires a special
167
167
    representation.  This uses "... ??:59:60" et seq.
168
168
  */
169
 
  tmp->second= (uint)(rem % SECS_PER_MIN);
 
169
  tmp->second= (uint32_t)(rem % SECS_PER_MIN);
170
170
 
171
171
  y= EPOCH_YEAR;
172
172
  while (days < 0 || days >= (long)year_lengths[yleap= isleap(y)])
187
187
  for (tmp->month= 0; days >= (long) ip[tmp->month]; tmp->month++)
188
188
    days= days - (long) ip[tmp->month];
189
189
  tmp->month++;
190
 
  tmp->day= (uint)(days + 1);
 
190
  tmp->day= (uint32_t)(days + 1);
191
191
 
192
192
  /* filling MySQL specific DRIZZLE_TIME members */
193
193
  tmp->neg= 0; tmp->second_part= 0;