diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-17 15:21:22 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-17 15:21:22 -0800 |
| commit | 6c2ce4981f7e463c8187aa62c461da564977cea3 (patch) | |
| tree | 362739b4fb72619d7c396cb1596a68d0da063b02 /toolsrc/src/coff_file_reader.cpp | |
| parent | a9223bd8df10483c9e5497c55c99fdf26cd2a6c2 (diff) | |
| download | vcpkg-6c2ce4981f7e463c8187aa62c461da564977cea3.tar.gz vcpkg-6c2ce4981f7e463c8187aa62c461da564977cea3.zip | |
[coff] Function rename
Diffstat (limited to 'toolsrc/src/coff_file_reader.cpp')
| -rw-r--r-- | toolsrc/src/coff_file_reader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |
