X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fld65%2Fcondes.c;h=68beb6f780fa63780163c292ab5201dc48996c60;hb=a152fe71c59ce2ee49886ab582bd9122ff8620ac;hp=d8446312d9592b0555b3202e0ba394a92b595491;hpb=518220f9cf7dabb3703d4067cdb5f777cee7d697;p=cc65 diff --git a/src/ld65/condes.c b/src/ld65/condes.c index d8446312d..68beb6f78 100644 --- a/src/ld65/condes.c +++ b/src/ld65/condes.c @@ -213,7 +213,7 @@ void ConDesSetSegName (unsigned Type, const char* SegName) /* Set the segment name where the table should go */ { /* Check the parameters */ - PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX && SegName != 0); + PRECONDITION (Type <= CD_TYPE_MAX && SegName != 0); /* Setting the segment name twice is bad */ CHECK (ConDes[Type].SegName == 0); @@ -228,7 +228,7 @@ void ConDesSetLabel (unsigned Type, const char* Name) /* Set the label for the given ConDes type */ { /* Check the parameters */ - PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX && Name != 0); + PRECONDITION (Type <= CD_TYPE_MAX && Name != 0); /* Setting the label twice is bad */ CHECK (ConDes[Type].Label == 0); @@ -243,7 +243,7 @@ void ConDesSetCountSym (unsigned Type, const char* Name) /* Set the name for the given ConDes count symbol */ { /* Check the parameters */ - PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX && Name != 0); + PRECONDITION (Type <= CD_TYPE_MAX && Name != 0); /* Setting the symbol twice is bad */ CHECK (ConDes[Type].CountSym == 0); @@ -258,7 +258,7 @@ void ConDesSetOrder (unsigned Type, ConDesOrder Order) /* Set the sorting oder for the given ConDes table */ { /* Check the parameters */ - PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX); + PRECONDITION (Type <= CD_TYPE_MAX); /* Set the order */ ConDes[Type].Order = Order; @@ -270,7 +270,7 @@ int ConDesHasSegName (unsigned Type) /* Return true if a segment name is already defined for this ConDes type */ { /* Check the parameters */ - PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX); + PRECONDITION (Type <= CD_TYPE_MAX); return (ConDes[Type].SegName != 0); } @@ -281,7 +281,7 @@ int ConDesHasLabel (unsigned Type) /* Return true if a label is already defined for this ConDes type */ { /* Check the parameters */ - PRECONDITION (Type >= CD_TYPE_MIN && Type <= CD_TYPE_MAX); + PRECONDITION (Type <= CD_TYPE_MAX); return (ConDes[Type].Label != 0); }