about summary refs log tree commit diff
path: root/src/hashmap.c
AgeCommit message (Collapse)Author
2024-06-12Fix undefined behavior by casting to uint64_t before left shiftKuan-Wei Chiu
According to the C standard, left-shifting a value by an amount greater than or equal to the width of its promoted type results in undefined behavior. To prevent potential unexpected results, explicitly cast the uint8_t variable type to uint64_t before performing the left shift operation by 56 bits. This ensures the operation is well-defined and adheres to the standard. Fixes: 40df85d1 ("adjust cmplog header")
2024-02-05adjust cmplog headervanhauser-thc