(put16u): Fix typo.
authordrepper <drepper>
Thu, 6 Apr 2000 04:59:07 +0000 (04:59 +0000)
committerdrepper <drepper>
Thu, 6 Apr 2000 04:59:07 +0000 (04:59 +0000)
iconv/skeleton.c

index 4a1c755..27b1cab 100644 (file)
@@ -168,7 +168,7 @@ static int to_object;
 #  define put16u(addr, val) \
      ({ uint16_t __val = (val);                                                      \
        ((unsigned char *) (addr))[1] = __val;                                \
-       ((unsigned char *) (addr))[2] = __val >> 8;                           \
+       ((unsigned char *) (addr))[0] = __val >> 8;                           \
        (void) 0; })
 #  define put32u(addr, val) \
      ({ uint32_t __val = (val);                                                      \