Skip to content

Commit c9d8e64

Browse files
authored
fix missing <cstdint> include (#6720)
Fix missing <cstdint> include in src/util/tptr.h that causes build failure with GCC 13: ``` In file included from /tmp/z3/src/util/region.cpp:53: /tmp/z3/src/util/region.cpp: In member function ‘void* region::allocate(size_t)’: /tmp/z3/src/util/tptr.h:29:62: error: ‘uintptr_t’ does not name a type 29 | #define ALIGN(T, PTR) reinterpret_cast<T>(((reinterpret_cast<uintptr_t>(PTR) >> PTR_ALIGNMENT) + \ | ^~~~~~~~~ /tmp/z3/src/util/region.cpp:82:22: note: in expansion of macro ‘ALIGN’ 82 | m_curr_ptr = ALIGN(char *, new_curr_ptr); | ^~~~~ /tmp/z3/src/util/region.cpp:57:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 56 | #include "util/page.h" +++ |+#include <cstdint> 57 | ```
1 parent 520e692 commit c9d8e64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/tptr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Revision History:
1919

2020
#pragma once
2121

22+
#include <cstdint>
2223
#include "util/machine.h"
2324
#include <cstdint>
2425

0 commit comments

Comments
 (0)