]> git.codecow.com Git - Monocypher.git/commit
Rename align() to gap() to avoid confusion
authorLoup Vaillant <loup@loup-vaillant.fr>
Wed, 22 Mar 2023 21:51:22 +0000 (22:51 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Wed, 22 Mar 2023 21:51:22 +0000 (22:51 +0100)
commit2c6b521f7781014aa5a36c4623cd2b9dfa6384ae
treee7fb21d2041efe14dd3eea6e679c47cb878b51e2
parentc3c74e29fbdfced4ad053181f589b6560e926dab
Rename align() to gap() to avoid confusion

The name "align" made readers believe it returns the next multiple,
while in fact it's returning how much we need to get there.

The name "gap" was suggested to me, and I haven't found better. A fully
descriptive name would likely be quite long, and wouldn't preclude the
need to look the definition up anyway. (And I suspect even now one could
guess from context.)
src/monocypher.c