commit: 30c40c96a8b75f78d1a1aa51e4f3e0c31bfb0118 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sat Dec 1 11:14:51 2018 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sat Dec 1 12:57:01 2018 +0000 URL: https://gitweb.gentoo.org/data/glep.git/commit/?id=30c40c96
glep-0075: Clarify conversion into hexadecimal notation. Bug: https://bugs.gentoo.org/666678 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> glep-0075.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/glep-0075.rst b/glep-0075.rst index 38d57e2..19ce10e 100644 --- a/glep-0075.rst +++ b/glep-0075.rst @@ -7,7 +7,7 @@ Type: Standards Track Status: Draft Version: 1 Created: 2018-01-26 -Last-Modified: 2018-01-27 +Last-Modified: 2018-12-01 Post-History: 2018-01-27 Content-Type: text/x-rst --- @@ -114,13 +114,13 @@ The exact algorithm for determining the distfile location follows: 3. For each integer **C** in cutoff list: - a. Take **C** most significant bits of **H** and store them as **V**. + a. Remove the **C** most significant bits from **H** and store them + as **V**. - b. Convert **V** into hexadecimal integer, left padded with zeros - to **C/4** digits (rounded up) and append it to the path, followed - by the path separator. - - c. Shift **H** left **C** bits. + b. Convert **V** into hexadecimal notation (digits ``0`` to ``9`` + and lowercase letters ``a`` to ``f``), left padded with zeros + to **C/4** digits (rounded up), and append it to the path, + followed by the path separator. 4. Finally, append **F** to the obtained path.