~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/strfunc.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:
68
68
      }
69
69
      else
70
70
        for (; pos != end && *pos != field_separator; pos++) ;
71
 
      var_len= (uint) (pos - start);
 
71
      var_len= (uint32_t) (pos - start);
72
72
      uint32_t find= cs ? find_type2(lib, start, var_len, cs) :
73
73
                      find_type(lib, start, var_len, (bool) 0);
74
74
      if (!find)
228
228
  /* Fiend end of word */
229
229
  for (ptr= val ; ptr < end && my_isalpha(&my_charset_utf8_general_ci, *ptr) ; ptr++)
230
230
    ;
231
 
  if ((res=find_type(lib, val, (uint) (ptr - val), 1)) > 0)
 
231
  if ((res=find_type(lib, val, (uint32_t) (ptr - val), 1)) > 0)
232
232
    *end_of_word= ptr;
233
233
  return res;
234
234
}