Skip to content

Commit 729a26a

Browse files
djmdjmdaztucker
authored andcommitted
fix uint64_t types; reported by Tom G. Christensen
1 parent 33c5f38 commit 729a26a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

defines.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -653,14 +653,14 @@ struct winsize {
653653
((uint32_t)(v) & 0xff0000) >> 8 | \
654654
((uint32_t)(v) & 0xff000000) >> 24)
655655
# define openssh_swap64(v) \
656-
(__uint64_t)((((__uint64_t)(v) & 0xff) << 56) | \
657-
((__uint64_t)(v) & 0xff00ULL) << 40 | \
658-
((__uint64_t)(v) & 0xff0000ULL) << 24 | \
659-
((__uint64_t)(v) & 0xff000000ULL) << 8 | \
660-
((__uint64_t)(v) & 0xff00000000ULL) >> 8 | \
661-
((__uint64_t)(v) & 0xff0000000000ULL) >> 24 | \
662-
((__uint64_t)(v) & 0xff000000000000ULL) >> 40 | \
663-
((__uint64_t)(v) & 0xff00000000000000ULL) >> 56)
656+
(uint64_t)((((uint64_t)(v) & 0xff) << 56) | \
657+
((uint64_t)(v) & 0xff00ULL) << 40 | \
658+
((uint64_t)(v) & 0xff0000ULL) << 24 | \
659+
((uint64_t)(v) & 0xff000000ULL) << 8 | \
660+
((uint64_t)(v) & 0xff00000000ULL) >> 8 | \
661+
((uint64_t)(v) & 0xff0000000000ULL) >> 24 | \
662+
((uint64_t)(v) & 0xff000000000000ULL) >> 40 | \
663+
((uint64_t)(v) & 0xff00000000000000ULL) >> 56)
664664
# ifdef WORDS_BIGENDIAN
665665
# define le32toh(v) (openssh_swap32(v))
666666
# define le64toh(v) (openssh_swap64(v))

0 commit comments

Comments
 (0)