From 253f8b97a1e2de183118ddab3b90f9ad3b847609 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Thu, 21 Feb 2008 15:54:10 +0000 Subject: [PATCH] Avoided warning concerning EC_READ/WRITE() macros on some compilers. --- include/ecrt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ecrt.h b/include/ecrt.h index e2cb0c8e..6f350ca1 100644 --- a/include/ecrt.h +++ b/include/ecrt.h @@ -648,7 +648,7 @@ void ecrt_domain_state( #define EC_WRITE_U16(DATA, VAL) \ do { \ *((uint16_t *) (DATA)) = (uint16_t) (VAL); \ - cpu_to_le16s(DATA); \ + cpu_to_le16s((uint16_t *) (DATA)); \ } while (0) /** Write a 16-bit signed value to EtherCAT data. @@ -664,7 +664,7 @@ void ecrt_domain_state( #define EC_WRITE_U32(DATA, VAL) \ do { \ *((uint32_t *) (DATA)) = (uint32_t) (VAL); \ - cpu_to_le32s(DATA); \ + cpu_to_le32s((uint32_t *) (DATA)); \ } while (0) /** Write a 32-bit signed value to EtherCAT data.