summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/score/inline/object.inl2
-rw-r--r--c/src/exec/score/inline/rtems/score/object.inl2
-rw-r--r--c/src/exec/score/macros/object.inl2
-rw-r--r--c/src/exec/score/macros/rtems/score/object.inl2
-rw-r--r--cpukit/score/inline/rtems/score/object.inl2
-rw-r--r--cpukit/score/macros/rtems/score/object.inl2
6 files changed, 6 insertions, 6 deletions
diff --git a/c/src/exec/score/inline/object.inl b/c/src/exec/score/inline/object.inl
index 101779ea80..7e4d12aeec 100644
--- a/c/src/exec/score/inline/object.inl
+++ b/c/src/exec/score/inline/object.inl
@@ -101,7 +101,7 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_class_valid(
Objects_Classes the_class
)
{
- return the_class <= OBJECTS_CLASSES_LAST;
+ return the_class && the_class <= OBJECTS_CLASSES_LAST;
}
/*PAGE
diff --git a/c/src/exec/score/inline/rtems/score/object.inl b/c/src/exec/score/inline/rtems/score/object.inl
index 101779ea80..7e4d12aeec 100644
--- a/c/src/exec/score/inline/rtems/score/object.inl
+++ b/c/src/exec/score/inline/rtems/score/object.inl
@@ -101,7 +101,7 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_class_valid(
Objects_Classes the_class
)
{
- return the_class <= OBJECTS_CLASSES_LAST;
+ return the_class && the_class <= OBJECTS_CLASSES_LAST;
}
/*PAGE
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
*
diff --git a/cpukit/score/inline/rtems/score/object.inl b/cpukit/score/inline/rtems/score/object.inl
index 101779ea80..7e4d12aeec 100644
--- a/cpukit/score/inline/rtems/score/object.inl
+++ b/cpukit/score/inline/rtems/score/object.inl
@@ -101,7 +101,7 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_class_valid(
Objects_Classes the_class
)
{
- return the_class <= OBJECTS_CLASSES_LAST;
+ return the_class && the_class <= OBJECTS_CLASSES_LAST;
}
/*PAGE
diff --git a/cpukit/score/macros/rtems/score/object.inl b/cpukit/score/macros/rtems/score/object.inl
index 2865b1e23b..cce2cbde9b 100644
--- a/cpukit/score/macros/rtems/score/object.inl
+++ b/cpukit/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
*