Author: massie
Date: Thu Mar  4 02:41:03 2010
New Revision: 918823

URL: http://svn.apache.org/viewvc?rev=918823&view=rev
Log:
AVRO-448. encoding_binary.c doesn't build on big endian platforms. Contributed 
by Bruce Mitchener.

Modified:
    hadoop/avro/trunk/CHANGES.txt
    hadoop/avro/trunk/lang/c/src/encoding_binary.c

Modified: hadoop/avro/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/avro/trunk/CHANGES.txt?rev=918823&r1=918822&r2=918823&view=diff
==============================================================================
--- hadoop/avro/trunk/CHANGES.txt (original)
+++ hadoop/avro/trunk/CHANGES.txt Thu Mar  4 02:41:03 2010
@@ -21,6 +21,9 @@
 
     AVRO-443. Endianness is determined at configure time rather 
     than compile time (Bruce Mitchener via massie)
+  
+    AVRO-448. encoding_binary.c doesn't build on big endian platforms
+    (Bruce Mitchener via massie)
 
   BUG FIXES
 

Modified: hadoop/avro/trunk/lang/c/src/encoding_binary.c
URL: 
http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/c/src/encoding_binary.c?rev=918823&r1=918822&r2=918823&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/c/src/encoding_binary.c (original)
+++ hadoop/avro/trunk/lang/c/src/encoding_binary.c Thu Mar  4 02:41:03 2010
@@ -196,7 +196,7 @@
                int32_t i;
        } v;
 #if BYTE_ORDER == BIG_ENDIAN
-       AVRO_READ(avro, buf, 4);
+       AVRO_READ(reader, buf, 4);
        v.i = ((int32_t) buf[0] << 0)
            | ((int32_t) buf[1] << 8)
            | ((int32_t) buf[2] << 16) | ((int32_t) buf[3] << 24);
@@ -252,7 +252,7 @@
        } v;
 
 #if BYTE_ORDER == BIG_ENDIAN
-       AVRO_READ(avro, buf, 8);
+       AVRO_READ(reader, buf, 8);
        v.l = ((int64_t) buf[0] << 0)
            | ((int64_t) buf[1] << 8)
            | ((int64_t) buf[2] << 16)


Reply via email to