updated for version 7.0072
diff --git a/src/syntax.c b/src/syntax.c
index 947ed19..be79c2c 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -7506,7 +7506,7 @@
 	return i + ATTR_OFF;
     }
 
-    if (table->ga_len + ATTR_OFF >= 256)
+    if (table->ga_len + ATTR_OFF > MAX_TYPENR)
     {
 	/*
 	 * Running out of attribute entries!  remove all attributes, and