~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/str2int.cc

  • Committer: Monty Taylor
  • Date: 2009-02-05 21:07:57 UTC
  • mto: This revision was merged to the branch mainline in revision 840.
  • Revision ID: mordred@inaugust.com-20090205210757-6487lf69y3mndcds
Fixed warnings badness in csv_alter_table test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
      machines all, if +|n| is representable, so is -|n|, but on
78
78
      twos complement machines the converse is not true.  So the
79
79
      "maximum" representable number has a negative representative.
80
 
      Limit is set to min(-|lower|,-|upper|); this is the "largest"
 
80
      Limit is set to cmin(-|lower|,-|upper|); this is the "largest"
81
81
      number we are concerned with.     */
82
82
 
83
83
  /*  Calculate Limit using Scale as a scratch variable  */
92
92
      converted value (and the scale!) as *negative* numbers,
93
93
      so the sign is the opposite of what you might expect.
94
94
      */
95
 
  while (my_isspace(&my_charset_latin1,*src)) src++;
 
95
  while (my_isspace(&my_charset_utf8_general_ci,*src)) src++;
96
96
  sign = -1;
97
97
  if (*src == '+') src++; else
98
98
    if (*src == '-') src++, sign = 1;