about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-11-09 09:11:16 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-11-09 09:11:16 -0800
commitf16e7b4a419a5afcdd4d634da120cb834c8ebaba (patch)
tree8a4f2765b369f5d9f63917763d165ce8dfc964a0 /src/libstd/sys/unix/stack_overflow.rs
parent00aa3cbecc6723898a04467050891c26a7fdb758 (diff)
downloadrust-f16e7b4a419a5afcdd4d634da120cb834c8ebaba.tar.gz
rust-f16e7b4a419a5afcdd4d634da120cb834c8ebaba.zip
std: Fix endianness in Ord for IP addresses
The comparison of IP addresses should happen not always in network endianness
but rather in the host endianness format, so be sure to convert to that before
comparing addresses.

There are still locations where the endianness will factor into visible
properties, such as the hash, but these are not important to be independent of
the endianness in play (as hash values are pretty undefined anyway.

Closes #29691
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions