~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to strings/strto.c

  • Committer: monty at mysql
  • Date: 2002-12-05 17:38:42 UTC
  • mfrom: (1346.7.103)
  • mto: (1388.1.1)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: sp1r-monty@mashka.mysql.fi-20021205173842-56440
Merge with 4.0.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
  }
104
104
 
105
105
  /* Check for a sign.  */
 
106
  negative= 0;
106
107
  if (*s == '-')
107
108
  {
108
109
    negative = 1;
110
111
  }
111
112
  else if (*s == '+')
112
113
  {
113
 
    negative = 0;
114
114
    ++s;
115
115
  }
116
 
  else
117
 
    negative = 0;
 
116
    
118
117
 
119
118
  if (base == 16 && s[0] == '0' && my_toupper (system_charset_info, s[1]) == 'X')
120
119
    s += 2;