diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-08-30 13:29:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-08-30 13:29:38 +0000 |
commit | 856a44e4b6de0af1b2e4dbf9037be3694e606a7b (patch) | |
tree | 3102055e098a134abf3337d70819765fc9ae0d67 | |
parent | 2001-08-17 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-856a44e4b6de0af1b2e4dbf9037be3694e606a7b.tar.bz2 |
2001-08-30 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/posix/mqueue.inl: Add cast so negation works.
-rw-r--r-- | c/src/exec/posix/ChangeLog | 4 | ||||
-rw-r--r-- | c/src/exec/posix/macros/rtems/posix/mqueue.inl | 4 | ||||
-rw-r--r-- | cpukit/posix/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/posix/macros/rtems/posix/mqueue.inl | 4 |
4 files changed, 14 insertions, 2 deletions
diff --git a/c/src/exec/posix/ChangeLog b/c/src/exec/posix/ChangeLog index 32ef291cdb..f7cccea68b 100644 --- a/c/src/exec/posix/ChangeLog +++ b/c/src/exec/posix/ChangeLog @@ -1,3 +1,7 @@ +2001-08-30 Joel Sherrill <joel@OARcorp.com> + + * macros/rtems/posix/mqueue.inl: Add cast so negation works. + 2001-08-16 Joel Sherrill <joel@OARcorp.com> * src/mqueuesendsupp.c: Account for possibly blocking during the diff --git a/c/src/exec/posix/macros/rtems/posix/mqueue.inl b/c/src/exec/posix/macros/rtems/posix/mqueue.inl index dd941ca99c..91fce0dd60 100644 --- a/c/src/exec/posix/macros/rtems/posix/mqueue.inl +++ b/c/src/exec/posix/macros/rtems/posix/mqueue.inl @@ -73,7 +73,9 @@ /* absolute value without a library dependency */ #define _POSIX_Message_queue_Priority_from_core( _priority ) \ - ((((_priority) >= 0) ? (_priority) : -(_priority))) + ((((CORE_message_queue_Submit_types)(_priority)) >= 0) ? \ + (_priority) : \ + -((CORE_message_queue_Submit_types)(_priority))) #endif /* end of include file */ diff --git a/cpukit/posix/ChangeLog b/cpukit/posix/ChangeLog index 32ef291cdb..f7cccea68b 100644 --- a/cpukit/posix/ChangeLog +++ b/cpukit/posix/ChangeLog @@ -1,3 +1,7 @@ +2001-08-30 Joel Sherrill <joel@OARcorp.com> + + * macros/rtems/posix/mqueue.inl: Add cast so negation works. + 2001-08-16 Joel Sherrill <joel@OARcorp.com> * src/mqueuesendsupp.c: Account for possibly blocking during the diff --git a/cpukit/posix/macros/rtems/posix/mqueue.inl b/cpukit/posix/macros/rtems/posix/mqueue.inl index dd941ca99c..91fce0dd60 100644 --- a/cpukit/posix/macros/rtems/posix/mqueue.inl +++ b/cpukit/posix/macros/rtems/posix/mqueue.inl @@ -73,7 +73,9 @@ /* absolute value without a library dependency */ #define _POSIX_Message_queue_Priority_from_core( _priority ) \ - ((((_priority) >= 0) ? (_priority) : -(_priority))) + ((((CORE_message_queue_Submit_types)(_priority)) >= 0) ? \ + (_priority) : \ + -((CORE_message_queue_Submit_types)(_priority))) #endif /* end of include file */ |