Skip to content

Commit 9508942

Browse files
authored
Fix Windows build (#22)
1 parent eb53234 commit 9508942

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ${{ matrix.os }}
2828
strategy:
2929
matrix:
30-
os: [ubuntu-latest, macos-latest]
30+
os: [ubuntu-latest, macos-latest, windows-latest]
3131
steps:
3232
- uses: actions/checkout@v3
3333
- uses: actions/setup-python@v4

src/gfc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#define ROL(x, r) ((x << r) | (x >> ((sizeof(SPECK_TYPE) * 8) - r)))
1313
#define R(x, y, k) (x = ROR(x, 8), x += y, x ^= k, y = ROL(y, 3), y ^= x)
1414

15-
void speck_expand(SPECK_TYPE const K[static SPECK_KEY_LEN],
16-
SPECK_TYPE S[static SPECK_ROUNDS]) {
15+
void speck_expand(SPECK_TYPE const K[SPECK_KEY_LEN],
16+
SPECK_TYPE S[SPECK_ROUNDS]) {
1717
SPECK_TYPE i, b = K[0];
1818
SPECK_TYPE a[SPECK_KEY_LEN - 1];
1919

@@ -27,8 +27,8 @@ void speck_expand(SPECK_TYPE const K[static SPECK_KEY_LEN],
2727
}
2828
}
2929

30-
void speck_encrypt(SPECK_TYPE const pt[static 2], SPECK_TYPE ct[static 2],
31-
SPECK_TYPE const K[static SPECK_ROUNDS]) {
30+
void speck_encrypt(SPECK_TYPE const pt[2], SPECK_TYPE ct[2],
31+
SPECK_TYPE const K[SPECK_ROUNDS]) {
3232
SPECK_TYPE i;
3333
ct[0] = pt[0];
3434
ct[1] = pt[1];

0 commit comments

Comments
 (0)