-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
libfortuna compilation fails on FreeBSD 10.x i386:
./src/sha2.c:183:2: error: implicit conversion from 'unsigned long long' to 'uint64' (aka 'unsigned long') changes value from 4794697086780616226 to 3609767458 [-Werror,-Wconstant-conversion]
0x428a2f98d728ae22ULL, 0x7137449123ef65cdULL,
^~~~~~~~~~~~~~~~~~~~~
The cause is obvious from the error message: uint64 is typedef'ed as unsigned long, which is 32 bit on i386. This probably breaks the whole library. You should use standard u_int64_t type here.
Metadata
Metadata
Assignees
Labels
No labels