* smob.c (scm_numsmob): Make this an int, not an scm_sizet, to
authorJim Blandy <jimb@red-bean.com>
Sat, 5 Sep 1998 16:50:33 +0000 (16:50 +0000)
committerJim Blandy <jimb@red-bean.com>
Sat, 5 Sep 1998 16:50:33 +0000 (16:50 +0000)
avoid signed/unsigned comparisons.
* smob.h (scm_numsmob): Change extern declaration to match.

libguile/smob.c
libguile/smob.h

index a498c48..8c54b3e 100644 (file)
@@ -56,7 +56,7 @@
  * Indexes into this table are used when generating type
  * tags for smobjects (if you know a tag you can get an index and conversely).
  */
-scm_sizet scm_numsmob;
+int scm_numsmob;
 scm_smobfuns *scm_smobs;
 
 
index 41dcec9..b218c68 100644 (file)
@@ -59,7 +59,7 @@ typedef struct scm_smobfuns
 
 #define SCM_SMOBNUM(x) (0x0ff & (SCM_CAR(x)>>8))
 
-extern scm_sizet scm_numsmob;
+extern int scm_numsmob;
 extern scm_smobfuns *scm_smobs;
 
 \f