Skip to content

Commit

Permalink
Extend documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
etan-status committed Aug 9, 2024
1 parent 57b2af4 commit 6e53bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blscurve/blst/blst+nim.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@

// Nim does not support annotating pointer destinations with C `const`.
//
// This leads to errors on certain platforms and toolchains, e.g.:
// This leads to errors on certain platforms and toolchains
// when interacting with APIs involving nested pointers, e.g.:
// expected 'const blst_p1_affine * const*'
// but argument is of type 'blst_p1_affine **'
// [-Wincompatible-pointer-types]
//
// To prevent these issues, offending function signatures are replaced
// with ones that lack C `const` annotations.


#define blst_p1s_to_affine blst_p1s_to_affine_replaced
#define blst_p1s_add blst_p1s_add_replaced
#define blst_p1s_mult_wbits_precompute blst_p1s_mult_wbits_precompute_replaced
Expand Down

0 comments on commit 6e53bb3

Please sign in to comment.