From dfd39f7b5518b392e875791592dc52d80f6c22ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Sat, 1 Dec 2018 12:14:51 +0100 Subject: [PATCH 1/2] glep-0075: Clarify conversion into hexadecimal notation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/666678 Signed-off-by: Ulrich Müller --- glep-0075.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/glep-0075.rst b/glep-0075.rst index 38d57e2..8baa221 100644 --- a/glep-0075.rst +++ b/glep-0075.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. -- 2.19.1