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

Use nullptr consistently instead of 0 or NULL.

This commit is contained in:
Bruce Mitchener 2022-08-01 16:36:05 +07:00 committed by Nikolaj Bjorner
parent bf282b05c8
commit 77e5d6ab19
8 changed files with 25 additions and 25 deletions

View file

@ -271,7 +271,7 @@ void memory::deallocate(void * p) {
void * memory::allocate(size_t s) {
s = s + sizeof(size_t); // we allocate an extra field!
void * r = malloc(s);
if (r == 0) {
if (r == nullptr) {
throw_out_of_memory();
return nullptr;
}
@ -298,7 +298,7 @@ void* memory::reallocate(void *p, size_t s) {
}
void *r = realloc(real_p, s);
if (r == 0) {
if (r == nullptr) {
throw_out_of_memory();
return nullptr;
}