This code is terrible and should not be there. (#496)
This commit is contained in:
parent
a8903d9765
commit
083569fca8
|
@ -21,8 +21,6 @@ inline char *allocate_padded_buffer(size_t length) noexcept {
|
||||||
char *padded_buffer = aligned_malloc_char(64, totalpaddedlength);
|
char *padded_buffer = aligned_malloc_char(64, totalpaddedlength);
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
if (padded_buffer == nullptr) {
|
if (padded_buffer == nullptr) {
|
||||||
errno = EINVAL;
|
|
||||||
perror("simdjson::allocate_padded_buffer() aligned_malloc_char() failed");
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
#endif // NDEBUG
|
#endif // NDEBUG
|
||||||
|
|
Loading…
Reference in New Issue