diff options
author | Vitalii Gridnev <gridnevvvit@gmail.com> | 2022-02-10 16:47:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:23 +0300 |
commit | 30ed3937ab02d1b3c4dec4d93fb86c683217d9be (patch) | |
tree | 40cf6aa8b6b8223a09b185010d80f212e28b74f0 /contrib/libs/rapidjson | |
parent | 64de01e9a049f96a9e2d43aff48d10621ab47d81 (diff) | |
download | ydb-30ed3937ab02d1b3c4dec4d93fb86c683217d9be.tar.gz |
Restoring authorship annotation for Vitalii Gridnev <gridnevvvit@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/rapidjson')
-rw-r--r-- | contrib/libs/rapidjson/include/rapidjson/internal/stack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libs/rapidjson/include/rapidjson/internal/stack.h b/contrib/libs/rapidjson/include/rapidjson/internal/stack.h index 863ff693e8..f93cffd80c 100644 --- a/contrib/libs/rapidjson/include/rapidjson/internal/stack.h +++ b/contrib/libs/rapidjson/include/rapidjson/internal/stack.h @@ -17,7 +17,7 @@ #include "../allocators.h" #include "swap.h" -#include <cstddef> +#include <cstddef> #if defined(__clang__) RAPIDJSON_DIAG_PUSH @@ -115,7 +115,7 @@ public: template<typename T> RAPIDJSON_FORCEINLINE void Reserve(size_t count = 1) { // Expand the stack if needed - if (RAPIDJSON_UNLIKELY(static_cast<std::ptrdiff_t>(sizeof(T) * count) > (stackEnd_ - stackTop_))) + if (RAPIDJSON_UNLIKELY(static_cast<std::ptrdiff_t>(sizeof(T) * count) > (stackEnd_ - stackTop_))) Expand<T>(count); } @@ -128,7 +128,7 @@ public: template<typename T> RAPIDJSON_FORCEINLINE T* PushUnsafe(size_t count = 1) { RAPIDJSON_ASSERT(stackTop_); - RAPIDJSON_ASSERT(static_cast<std::ptrdiff_t>(sizeof(T) * count) <= (stackEnd_ - stackTop_)); + RAPIDJSON_ASSERT(static_cast<std::ptrdiff_t>(sizeof(T) * count) <= (stackEnd_ - stackTop_)); T* ret = reinterpret_cast<T*>(stackTop_); stackTop_ += sizeof(T) * count; return ret; |