Skip to content

Commit 9247320

Browse files
Fix minor GCC warning on 64b Linux builds
1 parent 204704c commit 9247320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/int/i15_montmul.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ loop%=: \n\
141141

142142
py = &y[0]; // addresses of both arrays that will be scanned as uint16_t
143143
pm = &m[0];
144-
int py_unaligned = (((int)py) & 2) != 0;
145-
int pm_unaligned = (((int)pm) & 2) != 0;
144+
int py_unaligned = (((intptr_t)py) & 2) != 0;
145+
int pm_unaligned = (((intptr_t)pm) & 2) != 0;
146146
uint32_t ty, tm; // 32 bits buffers
147147
if (!py_unaligned && !pm_unaligned) {
148148
// both are aligned to 32 bits, we always skip the first 16 bits

0 commit comments

Comments
 (0)