3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

remove reinterpret_cast. Issue #229, issue #24

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-10-04 10:54:19 -07:00
parent 67ddbe4a05
commit 2912c355e2
5 changed files with 15 additions and 16 deletions

View file

@ -73,7 +73,7 @@ namespace pdr {
}
std::string pp_cube(unsigned sz, app * const * lits, ast_manager& m) {
return pp_cube(sz, reinterpret_cast<expr * const *>(lits), m);
return pp_cube(sz, (expr * const *)(lits), m);
}
std::string pp_cube(unsigned sz, expr * const * lits, ast_manager& m) {

View file

@ -293,7 +293,7 @@ namespace datalog {
void key_to_reserve(const key_value & key) const {
m_keys.ensure_reserve();
m_keys.write_into_reserve(reinterpret_cast<char *>(key.c_ptr()));
m_keys.write_into_reserve((char *)(key.c_ptr()));
}
offset_vector & get_matching_offset_vector(const key_value & key) {

View file

@ -43,7 +43,7 @@ void tbv_manager::reset() {
m.reset();
}
tbv* tbv_manager::allocate() {
tbv* r = reinterpret_cast<tbv*>(m.allocate());
tbv* r = static_cast<tbv*>(m.allocate());
DEBUG_CODE(
if (s_debug_alloc) {
TRACE("doc", tout << allocated_tbvs.size() << " " << r << "\n";);