[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 17/25: MinGW 64: fixes hash out-of-range error for 64-bi
From: |
Mike Gran |
Subject: |
[Guile-commits] 17/25: MinGW 64: fixes hash out-of-range error for 64-bit negative numbers |
Date: |
Thu, 10 Nov 2022 18:06:18 -0500 (EST) |
mike121 pushed a commit to branch wip-mingw
in repository guile.
commit 46bb667f203a842e2cc574054487cd05f4ce8977
Author: Michael Gran <spk121@yahoo.com>
AuthorDate: Sun Oct 16 01:24:48 2022 -0700
MinGW 64: fixes hash out-of-range error for 64-bit negative numbers
* libguile/hash.c (scm_raw_ihash): modified
---
libguile/hash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libguile/hash.c b/libguile/hash.c
index af5772892..d7c562959 100644
--- a/libguile/hash.c
+++ b/libguile/hash.c
@@ -301,7 +301,7 @@ scm_raw_ihash (SCM obj, size_t depth)
SCM n = SCM_I_MAKINUM (SCM_MOST_POSITIVE_FIXNUM);
if (scm_is_inexact (obj))
obj = scm_inexact_to_exact (obj);
- return scm_raw_ihashq (scm_to_ulong (scm_modulo (obj, n)));
+ return scm_raw_ihashq (scm_to_uintptr_t (scm_modulo (obj, n)));
}
else
return scm_i_string_hash (scm_number_to_string (obj, scm_from_int
(10)));
- [Guile-commits] 11/25: Add `scm_sigaction_for_thread' stub for MinGW., (continued)
- [Guile-commits] 11/25: Add `scm_sigaction_for_thread' stub for MinGW., Mike Gran, 2022/11/10
- [Guile-commits] 12/25: DRAFT Add partial `scm_fcntl' support for MinGW., Mike Gran, 2022/11/10
- [Guile-commits] 14/25: REMOVEME mingw: Hardcode compile-time-file-name-convention to 'mingw., Mike Gran, 2022/11/10
- [Guile-commits] 15/25: REMOVEME guix: guile-mingw: Hardcode file-name-convention., Mike Gran, 2022/11/10
- [Guile-commits] 16/25: DEBUG guile.cmd, wine-guile.sh: Some Wine help., Mike Gran, 2022/11/10
- [Guile-commits] 05/25: Support for x86_64-w64-mingw32., Mike Gran, 2022/11/10
- [Guile-commits] 07/25: Fix 'absolute-file-name?' and others for cross-build to MinGW., Mike Gran, 2022/11/10
- [Guile-commits] 13/25: guix: Add guile-patched, guile-mingw., Mike Gran, 2022/11/10
- [Guile-commits] 19/25: For MinGW, use native signal func in sigaction, Mike Gran, 2022/11/10
- [Guile-commits] 22/25: Revert "Fix 'absolute-file-name?' and others for cross-build to MinGW.", Mike Gran, 2022/11/10
- [Guile-commits] 17/25: MinGW 64: fixes hash out-of-range error for 64-bit negative numbers,
Mike Gran <=
- [Guile-commits] 18/25: More long integer fixes for x86_64-w64-mingw32, Mike Gran, 2022/11/10
- [Guile-commits] 20/25: Revert "REMOVEME mingw: Hardcode compile-time-file-name-convention to 'mingw.", Mike Gran, 2022/11/10
- [Guile-commits] 24/25: Avoids sign extension error in bytevector construction, Mike Gran, 2022/11/10
- [Guile-commits] 25/25: Avoid mysterious "error no error" message in pipe, Mike Gran, 2022/11/10