~stewart/drizzle/nofrm

« back to all changes in this revision

Viewing changes to drizzled/function/time/period_diff.cc

  • Committer: Stewart Smith
  • Date: 2009-02-22 06:28:04 UTC
  • mfrom: (869.1.29 drizzle)
  • Revision ID: stewart@flamingspork.com-20090222062804-ssplgcffmroxwjph
mergeĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
int64_t Item_func_period_diff::val_int()
25
25
{
26
26
  assert(fixed == 1);
27
 
  uint32_t period1= args[0]->val_int();
28
 
  uint32_t period2= args[1]->val_int();
 
27
  uint32_t period1= (uint32_t)args[0]->val_int();
 
28
  uint32_t period2= (uint32_t)args[1]->val_int();
29
29
 
30
30
  if ((null_value=args[0]->null_value || args[1]->null_value))
31
31
    return 0; /* purecov: inspected */