Details
Details
- Reviewers
kcc samsonov pcc - Commits
- rG313738792457: Merging r263001: --------------------------------------------------------------…
rG78e3b0e2a9d0: [DFSan] Fix test_inet_pton for big endian archs
rCRT263001: [DFSan] Fix test_inet_pton for big endian archs
rL263001: [DFSan] Fix test_inet_pton for big endian archs
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I think that the preferred way of normally doing this is by using the htonl() function provided by <arpa/inet.h>:
assert(in4.s_addr == htonl(0x7f000001);
There is no need to explicitly take the byte ordering of the architecture into account.