# HG changeset patch # User Florian Pose # Date 1189070636 0 # Node ID 9ae68af8e17a3119ac09d70b3734fb995be26119 # Parent 2db7128713fc7b03810c2196a38870fbf220c402 Fixed bug on big-endian systems (cpu_to_le32 -> cpu_to_le64). diff -r 2db7128713fc -r 9ae68af8e17a include/ecrt.h --- a/include/ecrt.h Thu Sep 06 09:21:33 2007 +0000 +++ b/include/ecrt.h Thu Sep 06 09:23:56 2007 +0000 @@ -325,7 +325,7 @@ #define EC_WRITE_U32(DATA, VAL) \ do { \ *((uint32_t *) (DATA)) = (uint32_t) (VAL); \ - cpu_to_le16s(DATA); \ + cpu_to_le32s(DATA); \ } while (0) /**