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:
parent
bf282b05c8
commit
77e5d6ab19
8 changed files with 25 additions and 25 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue