Fix 32/64 bit bug in INTEGER_ACCESSOR_PROLOGUE
authorDaniel Llorens <daniel.llorens@bluewin.ch>
Wed, 10 Oct 2018 17:45:30 +0000 (19:45 +0200)
committerDaniel Llorens <daniel.llorens@bluewin.ch>
Wed, 10 Oct 2018 17:51:58 +0000 (19:51 +0200)
libguile/bytevectors.c

index 7cd7530095a1edb71b08e3ccb722183128a459e4..1d41297057d299d22762a8b678f4e738b90fae5c 100644 (file)
@@ -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);          \