summaryrefslogtreecommitdiffstats
path: root/util/system/filemap.h
diff options
context:
space:
mode:
authoraavdonkin <[email protected]>2022-02-10 16:49:57 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:57 +0300
commitfc8d3fe40009fab7705035e6ffdc3eb334307c80 (patch)
tree727a724ad16999a718de495cb330555f602cf01a /util/system/filemap.h
parentfcd93d3533aed781986b121b1362ca188bd96367 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/filemap.h')
-rw-r--r--util/system/filemap.h4
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);