Skip to content

Commit 8d2761a

Browse files
committed
more minor tweeks
1 parent 9e97930 commit 8d2761a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

extension/data_loader/mman.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#include <executorch/runtime/platform/compiler.h>
1515
#include <sys/stat.h>
16+
#include <cstdint>
1617

1718
#ifndef _WIN32
1819

@@ -75,8 +76,8 @@ ET_INLINE int get_file_stat(int fd, size_t* out_size) {
7576
/**
7677
* Platform-specific mmap offset type conversion.
7778
*/
78-
ET_INLINE std::uint64_t get_mmap_offset(size_t offset) {
79-
return static_cast<std::uint64_t>(offset);
79+
ET_INLINE uint64_t get_mmap_offset(size_t offset) {
80+
return static_cast<uint64_t>(offset);
8081
}
8182

8283
#endif

0 commit comments

Comments
 (0)