mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 06:39:17 +02:00
Prefer lowercase for hex digits.
This commit is contained in:
parent
7f0c3a13e2
commit
cbe6759304
1 changed files with 2 additions and 2 deletions
4
sexp.c
4
sexp.c
|
@ -32,11 +32,11 @@ static const char sexp_separators[] = {
|
|||
};
|
||||
|
||||
static int digit_value (int c) {
|
||||
return (((c)<='9') ? ((c) - '0') : ((sexp_toupper(c) - 'A') + 10));
|
||||
return (((c)<='9') ? ((c) - '0') : ((sexp_tolower(c) - 'a') + 10));
|
||||
}
|
||||
|
||||
static int hex_digit (int n) {
|
||||
return ((n<=9) ? ('0' + n) : ('A' + n - 10));
|
||||
return ((n<=9) ? ('0' + n) : ('a' + n - 10));
|
||||
}
|
||||
|
||||
static int is_precision_indicator(int c) {
|
||||
|
|
Loading…
Add table
Reference in a new issue