Merge pull request #1215 from adamscott/fix-deprecated-builtins-clang-2

Fix forgotten not operator
pull/1197/head
Rémi Verschelde 2023-08-16 12:29:56 +02:00 committed by GitHub
commit 74b352e979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ void CowData<T>::_unref(void *p_data) {
}
// clean up
if (std::is_trivially_destructible<T>::value) {
if (!std::is_trivially_destructible<T>::value) {
uint32_t *count = _get_size();
T *data = (T *)(count + 1);