[rtems commit] rtems: Simplify RTEMS_MILLISECONDS_TO_MICROSECONDS
Sebastian Huber
sebh at rtems.org
Tue Oct 24 08:20:42 UTC 2017
Module: rtems
Branch: master
Commit: e0dc6efcf0f7d6da2cc0ac08303e1382f6bf4e69
Changeset: http://git.rtems.org/rtems/commit/?id=e0dc6efcf0f7d6da2cc0ac08303e1382f6bf4e69
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Oct 20 15:41:29 2017 +0200
rtems: Simplify RTEMS_MILLISECONDS_TO_MICROSECONDS
Remove the cast so that it can be used in C pre-processor directives.
Update #3117.
Update #3182.
---
cpukit/rtems/include/rtems/rtems/support.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/rtems/include/rtems/rtems/support.h b/cpukit/rtems/include/rtems/rtems/support.h
index 49dc9d8..4ebb50c 100644
--- a/cpukit/rtems/include/rtems/rtems/support.h
+++ b/cpukit/rtems/include/rtems/rtems/support.h
@@ -33,7 +33,7 @@ extern "C" {
/**
* @brief Returns the number of micro seconds for the milli seconds value @a _ms.
*/
-#define RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) ((uint32_t)(_ms) * 1000UL)
+#define RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) ((_ms) * 1000UL)
/**
* @brief Returns the number of ticks for the milli seconds value @a _ms.
More information about the vc
mailing list