fix inverted char->integer function

This commit is contained in:
Brennan Vincent 2021-11-24 01:32:05 -05:00
parent 7f28fcb5ee
commit 470ee531e0
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ pub fn try_scm_to_double(scm: SCM) -> Option<f64> {
pub fn try_scm_to_char(scm: SCM) -> Option<char> {
unsafe {
(scm_is_truthy(scm_char_p(scm)))
.then(|| scm_to_uint32(scm_integer_to_char(scm)))
.then(|| scm_to_uint32(scm_char_to_integer(scm)))
.map(|ch| ch.try_into().unwrap())
}
}