summaryrefslogtreecommitdiff
path: root/libguile/weak-vector.c
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2013-08-08 01:23:04 -0400
committerMark H Weaver <mhw@netris.org>2013-08-08 01:23:04 -0400
commit789dd40b8b3c3dab230cbb407c8435b430d6a18a (patch)
tree02eb6006014b66ae4901cddf3af9c753c438f69a /libguile/weak-vector.c
parent5270bb5bdbc4a036b9d4f73aa378b291f90ae04a (diff)
downloadguile-789dd40b8b3c3dab230cbb407c8435b430d6a18a.tar.gz
Fix --without-threads and SCM_DEBUG_TYPING_STRICTNESS==2 builds.
* libguile/hashtab.c (scm_hashv_ref, scm_hashv_set_x, scm_hashv_remove_x, scm_hash_ref, scm_hash_set_x, scm_hash_remove_x): * libguile/strports.c (scm_mkstrport): * libguile/weak-vector.c (weak_vector_ref): Add missing SCM_UNPACK. * libguile/ports.c (lock_port, unlock_port): Cast MUTEX to the expected type.
Diffstat (limited to 'libguile/weak-vector.c')
-rw-r--r--libguile/weak-vector.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libguile/weak-vector.c b/libguile/weak-vector.c
index 3e90b3d57..30e2ed63f 100644
--- a/libguile/weak-vector.c
+++ b/libguile/weak-vector.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1995,1996,1998,2000,2001, 2003, 2006, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1998, 2000, 2001, 2003, 2006, 2008, 2009,
+ * 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -129,7 +130,7 @@ weak_vector_ref (void *data)
{
struct weak_vector_ref_data *d = data;
- return SCM_SIMPLE_VECTOR_REF (d->wv, d->k);
+ return (void *) SCM_UNPACK (SCM_SIMPLE_VECTOR_REF (d->wv, d->k));
}
SCM