Skip to content

Commit

Permalink
Fix some windows warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FAlbertDev committed Jan 10, 2024
1 parent f3890dd commit 0967ec0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
on:
# TODO Remove on PR
push:
branches: [ master, pqc/classic_mceliece, ci/** ]
branches: [ master, pqc/classic_mceliece ]
pull_request:
branches: [ master ]

Expand Down
2 changes: 1 addition & 1 deletion src/lib/pubkey/classic_mceliece/cmce_field_ordering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ std::vector<Classic_McEliece_GF> Classic_McEliece_Field_Ordering::alphas(size_t
std::vector<Classic_McEliece_GF> n_alphas_vec;

std::transform(m_pi.begin(), m_pi.begin() + n, std::back_inserter(n_alphas_vec), [this](uint16_t pi_elem) {
return from_pi(pi_elem, m_poly_f, Classic_McEliece_GF::log_q(m_poly_f));
return from_pi(pi_elem, m_poly_f, Classic_McEliece_GF::log_q_from_mod(m_poly_f));
});

return n_alphas_vec;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/pubkey/classic_mceliece/cmce_gf.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class BOTAN_TEST_API Classic_McEliece_GF {
* @param modulus The modulus of GF(q).
* @return size_t The degree log_q of the modulus (m for GF(2^m)).
*/
static size_t log_q(uint16_t modulus) { return high_bit(modulus) - 1; }
static size_t log_q_from_mod(uint16_t modulus) { return high_bit(modulus) - 1; }

/**
* @brief Get m.
Expand All @@ -64,7 +64,7 @@ class BOTAN_TEST_API Classic_McEliece_GF {
* @param modulus The modulus of GF(q).
* @return size_t The degree log_q of the modulus (m for GF(2^m)).
*/
size_t log_q() const { return log_q(m_modulus); }
size_t log_q() const { return log_q_from_mod(m_modulus); }

/**
* @brief Get the GF(q) element as a uint16_t.
Expand Down

0 comments on commit 0967ec0

Please sign in to comment.