BSD 3 development
[unix-history] / usr / src / cmd / sdb / cdefs.h
index e8c946d..adfa323 100644 (file)
@@ -24,7 +24,7 @@
 # define ISFTN(x)  ((x&TMASK)==FTN)  /* is x a function type */
 # define ISARY(x)   ((x&TMASK)==ARY)   /* is x an array type */
 # define INCREF(x) (((x&~BTMASK)<<TSHIFT)|PTR|(x&BTMASK))
 # define ISFTN(x)  ((x&TMASK)==FTN)  /* is x a function type */
 # define ISARY(x)   ((x&TMASK)==ARY)   /* is x an array type */
 # define INCREF(x) (((x&~BTMASK)<<TSHIFT)|PTR|(x&BTMASK))
-# define DECREF(x) (((x>>TSHIFT)&~BTMASK)|(x&BTMASK))
+# define DECREF(x) (((x>>TSHIFT)&~BTMASK&0x3fff)|(x&BTMASK))
        /* pack and unpack field descriptors (size and offset) */
 # define PKFIELD(s,o) ((o<<6)|s)
 # define UPKFSZ(v)  (v&077)
        /* pack and unpack field descriptors (size and offset) */
 # define PKFIELD(s,o) ((o<<6)|s)
 # define UPKFSZ(v)  (v&077)