mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-31 23:11:09 +00:00
(ucs4le_internal_loop_single): Handle little endian.
This commit is contained in:
parent
52755fadf7
commit
9ea2c1941c
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user