diff --git a/mediapipe/tasks/cc/core/external_file_handler.cc b/mediapipe/tasks/cc/core/external_file_handler.cc index c271f3dac..a56f03d55 100644 --- a/mediapipe/tasks/cc/core/external_file_handler.cc +++ b/mediapipe/tasks/cc/core/external_file_handler.cc @@ -66,13 +66,13 @@ using ::absl::StatusCode; // Gets the offset aligned to page size for mapping given files into memory by // file descriptor correctly, as according to mmap(2), the offset used in mmap // must be a multiple of sysconf(_SC_PAGE_SIZE). -int64 GetPageSizeAlignedOffset(int64 offset) { +int64_t GetPageSizeAlignedOffset(int64_t offset) { #ifdef _WIN32 // mmap is not used on Windows return 0; #else - int64 aligned_offset = offset; - int64 page_size = sysconf(_SC_PAGE_SIZE); + int64_t aligned_offset = offset; + int64_t page_size = sysconf(_SC_PAGE_SIZE); if (offset % page_size != 0) { aligned_offset = offset / page_size * page_size; }