summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/macros
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-30 13:29:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-30 13:29:38 +0000
commit856a44e4b6de0af1b2e4dbf9037be3694e606a7b (patch)
tree3102055e098a134abf3337d70819765fc9ae0d67 /cpukit/posix/macros
parent7ac1f89365fbc36e8f0b7a782435144a1d6eca1c (diff)
downloadrtems-856a44e4b6de0af1b2e4dbf9037be3694e606a7b.tar.bz2
2001-08-30 Joel Sherrill <joel@OARcorp.com>
* macros/rtems/posix/mqueue.inl: Add cast so negation works.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/macros/rtems/posix/mqueue.inl4
1 files changed, 3 insertions, 1 deletions
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 */