1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-28 10:56:36 +00:00

data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.

This commit is contained in:
Jan Djärv 2004-03-31 12:42:43 +00:00
parent 1ede99a8ec
commit 7a8560d7d7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-03-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* data.c (Fbyteorder): Make test work even if unsigned is not 4
bytes.
2004-03-30 Kenichi Handa <handa@m17n.org>
* editfns.c (Fformat): Fix initialization of the array info.

View File

@ -2909,7 +2909,7 @@ lowercase l) for small endian machines. */)
()
{
unsigned i = 0x04030201;
int order = *(char *)&i == 4 ? 66 : 108;
int order = *(char *)&i == 1 ? 108 : 66;
return make_number (order);
}