guile-commits
[Top][All Lists]
Advanced

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

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


From: Andy Wingo
Subject: [Guile-commits] 06/55: Fix 32/64 bit bug in INTEGER_ACCESSOR_PROLOGUE
Date: Thu, 23 May 2019 11:52:37 -0400 (EDT)

wingo pushed a commit to branch master
in repository guile.

commit e4da1b456a71be2b344eb3fa3f3fdfe44c669bc0
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 203bb83..6e3c950 100644
--- a/libguile/bytevectors.c
+++ b/libguile/bytevectors.c
@@ -88,7 +88,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]