Skip to content

Commit 94bacce

Browse files
committed
Fix macro typo: MLK_UNION_OR_STRUCT => MLD_UNION_OR_STRUCT
- This commit fixes a error cause by macro typo in .clang-format where MLK_UNION_OR_STRUCT should be MLD_UNION_OR_STRUCT. This typo was detected after extending the macro checker to catch wrongly ported MLK_XXX/MLKEM_XXX macros. Signed-off-by: willieyz <willie.zhao@chelpis.com>
1 parent 655eeb9 commit 94bacce

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

mldsa/mldsa_native.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
#undef MLD_NAMESPACE_KL
216216
#undef MLD_NAMESPACE_PREFIX
217217
#undef MLD_NAMESPACE_PREFIX_KL
218-
#undef MLK_UNION_OR_STRUCT
218+
#undef MLD_UNION_OR_STRUCT
219219
#undef mld_memcpy
220220
#undef mld_memset
221221
/* mldsa/src/packing.h */

mldsa/mldsa_native.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
#undef MLD_NAMESPACE_KL
212212
#undef MLD_NAMESPACE_PREFIX
213213
#undef MLD_NAMESPACE_PREFIX_KL
214-
#undef MLK_UNION_OR_STRUCT
214+
#undef MLD_UNION_OR_STRUCT
215215
#undef mld_memcpy
216216
#undef mld_memset
217217
/* mldsa/src/packing.h */

mldsa/src/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@
214214
* is resolved
215215
*/
216216
#if defined(MLD_CONFIG_REDUCE_RAM)
217-
#define MLK_UNION_OR_STRUCT union
217+
#define MLD_UNION_OR_STRUCT union
218218
#else
219-
#define MLK_UNION_OR_STRUCT struct
219+
#define MLD_UNION_OR_STRUCT struct
220220
#endif
221221

222222
/****************************** Error codes ***********************************/

mldsa/src/sign.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ __contract__(
492492
int ret;
493493
/* TODO: Remove the following workaround for
494494
* https://github.com/diffblue/cbmc/issues/8813 */
495-
typedef MLK_UNION_OR_STRUCT
495+
typedef MLD_UNION_OR_STRUCT
496496
{
497497
mld_polyvecl y;
498498
mld_polyveck h;

0 commit comments

Comments
 (0)