diff options
author | aavdonkin <[email protected]> | 2022-02-10 16:49:57 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:57 +0300 |
commit | fc8d3fe40009fab7705035e6ffdc3eb334307c80 (patch) | |
tree | 727a724ad16999a718de495cb330555f602cf01a /util/system/filemap.h | |
parent | fcd93d3533aed781986b121b1362ca188bd96367 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/filemap.h')
-rw-r--r-- | util/system/filemap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/filemap.h b/util/system/filemap.h index 11be64bff47..46c10dd897b 100644 --- a/util/system/filemap.h +++ b/util/system/filemap.h @@ -314,7 +314,7 @@ public: char* End() const noexcept { return Begin() + MappedSize(); } - size_t MappedSize() const { + size_t MappedSize() const { return Size_; } void swap(TMappedAllocation& with); @@ -342,7 +342,7 @@ public: } T* Create(size_t siz) { Y_ASSERT(MappedSize() == 0 && Ptr() == nullptr); - T* arr = (T*)Alloc((sizeof(T) * siz)); + T* arr = (T*)Alloc((sizeof(T) * siz)); if (!arr) return nullptr; Y_ASSERT(MappedSize() == sizeof(T) * siz); |