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:
parent
1ede99a8ec
commit
7a8560d7d7
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user