diff mbox

[lng,1/7] api: time: use signed long for ODP_TIME_*

Message ID 1447347943-16807-2-git-send-email-ivan.khoronzhuk@linaro.org
State New
Headers show

Commit Message

Ivan Khoronzhuk Nov. 12, 2015, 5:05 p.m. UTC
Use signed long for ODP_TIME_*, that's enough and it allows to
compare it with signed types, used for instance in timespec type.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
---
 include/odp/api/time.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/include/odp/api/time.h b/include/odp/api/time.h
index 50a0bf5..2bddb56 100644
--- a/include/odp/api/time.h
+++ b/include/odp/api/time.h
@@ -24,9 +24,9 @@  extern "C" {
  */
 
 /* Time in nanoseconds */
-#define ODP_TIME_USEC_IN_NS	1000ULL       /**< Microsecond in nsec */
-#define ODP_TIME_MSEC_IN_NS	1000000ULL    /**< Millisecond in nsec */
-#define ODP_TIME_SEC_IN_NS	1000000000ULL /**< Second in nsec */
+#define ODP_TIME_USEC_IN_NS	1000L       /**< Microsecond in nsec */
+#define ODP_TIME_MSEC_IN_NS	1000000L    /**< Millisecond in nsec */
+#define ODP_TIME_SEC_IN_NS	1000000000L /**< Second in nsec */
 
 /**
  * @typedef odp_time_t