Skip to content

Commit

Permalink
fix uint64_t types; reported by Tom G. Christensen
Browse files Browse the repository at this point in the history
  • Loading branch information
djmdjm committed Oct 30, 2024
1 parent ef7c26c commit 88b35cb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -653,14 +653,14 @@ struct winsize {
((uint32_t)(v) & 0xff0000) >> 8 | \
((uint32_t)(v) & 0xff000000) >> 24)
# define openssh_swap64(v) \
(__uint64_t)((((__uint64_t)(v) & 0xff) << 56) | \
((__uint64_t)(v) & 0xff00ULL) << 40 | \
((__uint64_t)(v) & 0xff0000ULL) << 24 | \
((__uint64_t)(v) & 0xff000000ULL) << 8 | \
((__uint64_t)(v) & 0xff00000000ULL) >> 8 | \
((__uint64_t)(v) & 0xff0000000000ULL) >> 24 | \
((__uint64_t)(v) & 0xff000000000000ULL) >> 40 | \
((__uint64_t)(v) & 0xff00000000000000ULL) >> 56)
(uint64_t)((((uint64_t)(v) & 0xff) << 56) | \
((uint64_t)(v) & 0xff00ULL) << 40 | \
((uint64_t)(v) & 0xff0000ULL) << 24 | \
((uint64_t)(v) & 0xff000000ULL) << 8 | \
((uint64_t)(v) & 0xff00000000ULL) >> 8 | \
((uint64_t)(v) & 0xff0000000000ULL) >> 24 | \
((uint64_t)(v) & 0xff000000000000ULL) >> 40 | \
((uint64_t)(v) & 0xff00000000000000ULL) >> 56)
# ifdef WORDS_BIGENDIAN
# define le32toh(v) (openssh_swap32(v))
# define le64toh(v) (openssh_swap64(v))
Expand Down

0 comments on commit 88b35cb

Please sign in to comment.