Fix SRFI 175 ASCII bug
This commit is contained in:
parent
cbbf3e4be1
commit
e53e4f0fb3
2
c/char.c
2
c/char.c
|
@ -94,7 +94,7 @@ static int32_t cc_base_offset_limit(int32_t cc, int32_t base, int32_t offset,
|
||||||
limit = maxlimit;
|
limit = maxlimit;
|
||||||
}
|
}
|
||||||
if ((cc >= base) && (cc < base + limit)) {
|
if ((cc >= base) && (cc < base + limit)) {
|
||||||
return fixnum(offset + (base - cc));
|
return fixnum(offset + (cc - base));
|
||||||
}
|
}
|
||||||
return FL_F;
|
return FL_F;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue