~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to mystrings/ctype-ucs2.c

  • Committer: Brian Aker
  • Date: 2008-08-03 22:27:54 UTC
  • mfrom: (236.1.66 codestyle)
  • Revision ID: brian@tangent.org-20080803222754-yhkw8plul06oqvhe
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
865
865
  return (int64_t) li;
866
866
 
867
867
overflow:                                        /* *endptr is set here */
868
 
  *error= MY_ERRNO_ERANGE;
 
868
  *error= ERANGE;
869
869
  return negative ? INT64_MIN : (int64_t) UINT64_MAX;
870
870
 
871
871
end_i:
895
895
 
896
896
no_conv:
897
897
  /* There was no number to convert.  */
898
 
  *error= MY_ERRNO_EDOM;
 
898
  *error= EDOM;
899
899
  *endptr= (char *) nptr;
900
900
  return 0;
901
901
}
2462
2462
  return (int64_t) li;
2463
2463
 
2464
2464
overflow:                                        /* *endptr is set here */
2465
 
  *error= MY_ERRNO_ERANGE;
 
2465
  *error= ERANGE;
2466
2466
  return negative ? INT64_MIN : (int64_t) UINT64_MAX;
2467
2467
 
2468
2468
end_i:
2492
2492
 
2493
2493
no_conv:
2494
2494
  /* There was no number to convert.  */
2495
 
  *error= MY_ERRNO_EDOM;
 
2495
  *error= EDOM;
2496
2496
  *endptr= (char *) nptr;
2497
2497
  return 0;
2498
2498
}