From 7e4c3d8b1d199ca3f72341aba9e1916f0cd78257 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 18 Jun 1998 18:58:42 +0000 Subject: Modified _Objects_Is_class_valid() to correctly report that 0 was not a valid object class. This was discovered while looking for a bug reported by Jennifer. --- c/src/exec/score/macros/object.inl | 2 +- c/src/exec/score/macros/rtems/score/object.inl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'c/src/exec/score/macros') diff --git a/c/src/exec/score/macros/object.inl b/c/src/exec/score/macros/object.inl index 2865b1e23b..cce2cbde9b 100644 --- a/c/src/exec/score/macros/object.inl +++ b/c/src/exec/score/macros/object.inl @@ -62,7 +62,7 @@ */ #define _Objects_Is_class_valid( _the_class ) \ - ( (_the_class) <= OBJECTS_CLASSES_LAST ) + ( (_the_class) && (_the_class) <= OBJECTS_CLASSES_LAST ) /*PAGE * diff --git a/c/src/exec/score/macros/rtems/score/object.inl b/c/src/exec/score/macros/rtems/score/object.inl index 2865b1e23b..cce2cbde9b 100644 --- a/c/src/exec/score/macros/rtems/score/object.inl +++ b/c/src/exec/score/macros/rtems/score/object.inl @@ -62,7 +62,7 @@ */ #define _Objects_Is_class_valid( _the_class ) \ - ( (_the_class) <= OBJECTS_CLASSES_LAST ) + ( (_the_class) && (_the_class) <= OBJECTS_CLASSES_LAST ) /*PAGE * -- cgit v1.2.3