Merge pull request #31 from jserv/fix-typo-again

Fix typo in comments
This commit is contained in:
Daan 2019-06-23 10:46:00 -07:00 committed by GitHub
commit 902b8ba639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ terms of the MIT license. A copy of the license can be found in the file
// Define NDEBUG in the release version to disable assertions.
// #define NDEBUG
// Define MI_STAT as 1 to maintain statistics; set it to 2 to have detailed statitistics (but costs some performance).
// Define MI_STAT as 1 to maintain statistics; set it to 2 to have detailed statistics (but costs some performance).
// #define MI_STAT 1
// Define MI_SECURE as 1 to encode free lists

View File

@ -103,7 +103,7 @@ static void* mi_realloc_zero_aligned_at(void* p, size_t newsize, size_t alignmen
memset((uint8_t*)newp + start, 0, newsize - start);
}
memcpy(newp, p, (newsize > size ? size : newsize));
mi_free(p); // only free if succesfull
mi_free(p); // only free if successful
}
return newp;
}

View File

@ -337,7 +337,7 @@ void* _mi_realloc_zero(void* p, size_t newsize, bool zero) {
memset((uint8_t*)newp + start, 0, newsize - start);
}
memcpy(newp, p, (newsize > size ? size : newsize));
mi_free(p); // only free if succesfull
mi_free(p); // only free if successful
}
return newp;
}