guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 01/01: Fix 32/64 bit bug in INTEGER_ACCESSOR_PROLOGUE


From: Daniel Llorens
Subject: [Guile-commits] 01/01: Fix 32/64 bit bug in INTEGER_ACCESSOR_PROLOGUE
Date: Wed, 10 Oct 2018 13:58:58 -0400 (EDT)

lloda pushed a commit to branch stable-2.2
in repository guile.

commit b9cf3517efd4643670d970d2692bc7bede9a85e8
Author: Daniel Llorens <address@hidden>
Date:   Wed Oct 10 19:45:30 2018 +0200

    Fix 32/64 bit bug in INTEGER_ACCESSOR_PROLOGUE
---
 libguile/bytevectors.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libguile/bytevectors.c b/libguile/bytevectors.c
index 7cd7530..1d41297 100644
--- a/libguile/bytevectors.c
+++ b/libguile/bytevectors.c
@@ -79,7 +79,7 @@
   _sign char *c_bv;                                            \
                                                                \
   SCM_VALIDATE_##validate (1, bv);                              \
-  c_index = scm_to_uint (index);                               \
+  c_index = scm_to_size_t (index);                             \
                                                                \
   c_len = SCM_BYTEVECTOR_LENGTH (bv);                          \
   c_bv = (_sign char *) SCM_BYTEVECTOR_CONTENTS (bv);          \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]