~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/longlong2str.cc

  • Committer: Monty Taylor
  • Date: 2009-03-08 23:45:12 UTC
  • mto: (923.2.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 921.
  • Revision ID: mordred@inaugust.com-20090308234512-tqkygxtu1iaig23s
Removed C99 isnan() usage, which allows us to remove the util/math.{cc,h} workarounds. Yay for standards!

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
 
78
78
  while (uval > (uint64_t) LONG_MAX)
79
79
  {
80
 
    uint64_t quo= uval/(uint) radix;
81
 
    uint32_t rem= (uint) (uval- quo* (uint) radix);
 
80
    uint64_t quo= uval/(uint32_t) radix;
 
81
    uint32_t rem= (uint32_t) (uval- quo* (uint32_t) radix);
82
82
    *--p = _dig_vec_upper[rem];
83
83
    uval= quo;
84
84
  }
124
124
 
125
125
  while (uval > (uint64_t) LONG_MAX)
126
126
  {
127
 
    uint64_t quo= uval/(uint) 10;
128
 
    uint32_t rem= (uint) (uval- quo* (uint) 10);
 
127
    uint64_t quo= uval/(uint32_t) 10;
 
128
    uint32_t rem= (uint32_t) (uval- quo* (uint32_t) 10);
129
129
    *--p = _dig_vec_upper[rem];
130
130
    uval= quo;
131
131
  }