summaryrefslogtreecommitdiff
path: root/libguile/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/random.h')
-rw-r--r--libguile/random.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libguile/random.h b/libguile/random.h
index 38aba09ff..797bae4a0 100644
--- a/libguile/random.h
+++ b/libguile/random.h
@@ -108,9 +108,9 @@ extern SCM scm_c_random_bignum (scm_rstate *, SCM m);
/*
* Scheme level interface
*/
-extern long scm_tc16_rstate;
-#define SCM_RSTATE(obj) ((scm_rstate *) SCM_CELL_WORD_1 (obj))
-#define SCM_RSTATEP(obj) (SCM_NIMP(obj) && (SCM_TYP16 (obj) == scm_tc16_rstate))
+extern scm_bits_t scm_tc16_rstate;
+#define SCM_RSTATEP(obj) SCM_TYP16_PREDICATE (scm_tc16_rstate, obj)
+#define SCM_RSTATE(obj) ((scm_rstate *) SCM_CELL_WORD_1 (obj))
extern unsigned char scm_masktab[256];