(ucs4le_internal_loop_single): Handle little endian.

This commit is contained in:
Andreas Jaeger 2002-03-25 17:07:14 +00:00
parent 52755fadf7
commit 9ea2c1941c

View File

@ -1,5 +1,5 @@
/* Simple transformations functions. /* Simple transformations functions.
Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@ -729,7 +729,7 @@ ucs4le_internal_loop_single (struct __gconv_step *step,
(*outptrp)[1] = state->__value.__wchb[2]; (*outptrp)[1] = state->__value.__wchb[2];
(*outptrp)[2] = state->__value.__wchb[1]; (*outptrp)[2] = state->__value.__wchb[1];
(*outptrp)[3] = state->__value.__wchb[0]; (*outptrp)[3] = state->__value.__wchb[0];
#elif __BYTE_ORDER == __BIG_ENDIAN #else
(*outptrp)[0] = state->__value.__wchb[0]; (*outptrp)[0] = state->__value.__wchb[0];
(*outptrp)[1] = state->__value.__wchb[1]; (*outptrp)[1] = state->__value.__wchb[1];
(*outptrp)[2] = state->__value.__wchb[2]; (*outptrp)[2] = state->__value.__wchb[2];