File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ typedef struct {
5151#error "__jmp_buf not available for your target architecture."
5252#endif
5353 // unused if checksum feature is not enabled.
54- __UINT64_TYPE__ __chksum ;
54+ __UINTPTR_TYPE__ __chksum ;
5555} __jmp_buf ;
5656
5757typedef __jmp_buf jmp_buf [1 ];
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ namespace LIBC_NAMESPACE_DECL {
1515namespace jmpbuf {
1616
1717extern __UINTPTR_TYPE__ value_mask;
18- extern __UINT64_TYPE__ checksum_cookie;
18+ extern __UINTPTR_TYPE__ checksum_cookie;
1919
2020// abitrary prime number
21- LIBC_INLINE constexpr __UINT64_TYPE__ ROTATION = 13 ;
21+ LIBC_INLINE constexpr __UINTPTR_TYPE__ ROTATION = 13 ;
2222void initialize ();
2323extern " C" [[gnu::cold, noreturn]] void __libc_jmpbuf_corruption ();
2424} // namespace jmpbuf
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ namespace LIBC_NAMESPACE_DECL {
1515namespace jmpbuf {
1616// random bytes from https://www.random.org/cgi-bin/randbyte?nbytes=8&format=h
1717// the cookie should not be zero otherwise it will be a bad seed as a multiplier
18- __UINTPTR_TYPE__ value_mask = 0x3899'f0d3'5005'd953 ;
19- __UINT64_TYPE__ checksum_cookie = 0xc7d9'd341'6afc'33f2 ;
18+ __UINTPTR_TYPE__ value_mask =
19+ static_cast <__UINTPTR_TYPE__>(0x3899'f0d3'5005'd953ull );
20+ __UINTPTR_TYPE__ checksum_cookie =
21+ static_cast <__UINTPTR_TYPE__>(0xc7d9'd341'6afc'33f2ull );
2022
2123// initialize the checksum state
2224void initialize () {
You can’t perform that action at this time.
0 commit comments