Merge pull request #839 from rschifflin/rs-bignum-fix-to-sint

Fix SEXP_CUSTOM_LONG_LONGS lsint_to_sint
This commit is contained in:
Alex Shinn 2022-06-11 08:16:39 +09:00 committed by GitHub
commit 566d9a47cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ static inline sexp_luint_t luint_from_uint(sexp_uint_t v) {
}
static inline sexp_sint_t lsint_to_sint(sexp_lsint_t v) {
return lsint_lt_0(v) ? -v.lo : v.lo;
return v.lo;
}
static inline sexp_uint_t luint_to_uint(sexp_luint_t v) {