3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-22 19:17:53 +00:00

Merge branch 'master' into polysat

This commit is contained in:
Jakob Rath 2022-08-01 15:03:03 +02:00
commit 0f51f3ed17
10 changed files with 26 additions and 41 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;
}