# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1203609250 0
# Node ID 7d7c59e1427e2aea24597345902a86acef8e7e9a
# Parent  ec4ef8911824dfa1885984a7b5a94a244f697581
Avoided warning concerning EC_READ/WRITE() macros on some compilers.

diff -r ec4ef8911824 -r 7d7c59e1427e include/ecrt.h
--- a/include/ecrt.h	Thu Feb 21 15:49:02 2008 +0000
+++ b/include/ecrt.h	Thu Feb 21 15:54:10 2008 +0000
@@ -648,7 +648,7 @@
 #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 @@
 #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.