~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item.cc

  • Committer: Stewart Smith
  • Date: 2009-03-18 00:29:24 UTC
  • mto: (942.1.10 mordred)
  • mto: This revision was merged to the branch mainline in revision 945.
  • Revision ID: stewart@flamingspork.com-20090318002924-gixoh4t5mhbw8qyz
make set_if_bigger typesafe for C and C++. Fix up everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1356
1356
    char hexbuf[7];
1357
1357
    enum DRIZZLE_ERROR::enum_warning_level level;
1358
1358
    uint32_t diff= str->length() - wlen;
1359
 
    set_if_smaller(diff, 3);
 
1359
    set_if_smaller(diff, 3U);
1360
1360
    drizzleclient_drizzleclient_octet2hex(hexbuf, str->ptr() + wlen, diff);
1361
1361
    if (send_error)
1362
1362
    {