OSDN Git Service

clang: ?e64_to_cpu() and cpu_to_?e64(): cast to uint64_t.
authorPeter Jones <pjones@redhat.com>
Thu, 17 May 2018 21:57:10 +0000 (17:57 -0400)
committerPeter Jones <pmjones@gmail.com>
Mon, 21 May 2018 13:27:22 +0000 (09:27 -0400)
commit636f2b027f508e263006716cfa77f478fc946161
treed7d92a21462e9a4c53d7c1f6462ed228bf63fca8
parent3f0529fbbef01a7e5311c5fec77107bf768cb8d6
clang: ?e64_to_cpu() and cpu_to_?e64(): cast to uint64_t.

On x86_64, clang makes __builtin_bswap64() return "unsigned long"
instead of "unsigned long long", so using PRIx64 complains all over the
place.  Casting to uint64_t satisfies both compilers.

Signed-off-by: Peter Jones <pjones@redhat.com>
src/efivar_endian.h