From 6c2ce4981f7e463c8187aa62c461da564977cea3 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Thu, 17 Nov 2016 15:21:22 -0800 Subject: [coff] Function rename --- toolsrc/src/coff_file_reader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolsrc/src/coff_file_reader.cpp') diff --git a/toolsrc/src/coff_file_reader.cpp b/toolsrc/src/coff_file_reader.cpp index c6bfc33d2..5dd32bcd5 100644 --- a/toolsrc/src/coff_file_reader.cpp +++ b/toolsrc/src/coff_file_reader.cpp @@ -54,7 +54,7 @@ namespace vcpkg { namespace COFFFileReader fs.seekg(offset_to_PE_signature + PE_SIGNATURE_SIZE, ios_base::beg); } - static fpos_t align_to(const fpos_t unaligned_offset, const int alignment_size) + static fpos_t align_offset_to_size(const fpos_t unaligned_offset, const int alignment_size) { fpos_t aligned_offset = unaligned_offset - 1; aligned_offset /= alignment_size; @@ -195,7 +195,7 @@ namespace vcpkg { namespace COFFFileReader { static const size_t ALIGNMENT_SIZE = 2; - const fpos_t advance_by = align_to(member_size, ALIGNMENT_SIZE); + const fpos_t advance_by = align_offset_to_size(member_size, ALIGNMENT_SIZE); fs.seekg(advance_by, ios_base::cur); } -- cgit v1.2.3