You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/fcmp_pp/curve_trees.h
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -123,9 +123,14 @@ struct OutputContext final
123
123
uint64_t output_id{0};
124
124
// TODO: consider using a variant instead
125
125
// True if the output pair elems are guaranteed to not have torsion and are not equal to identity
126
-
bool torsion_checked{false};
126
+
uint8_t torsion_checked{0};
127
127
OutputPair output_pair;
128
128
129
+
// Using uint8_t for torsion_checked because sizeof(bool) is platform-dependent: https://github.com/seraphis-migration/monero/pull/20#discussion_r2027787352
130
+
// These static asserts ensure booleans cast to the expected uint8_t value and vice versa
0 commit comments