Skip to content

Commit 7ed8e70

Browse files
committed
Fix comparison bug caused by casting reported by cryptofuzz.
1 parent 4ef8f9c commit 7ed8e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dv/relic_dv_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ int dv_cmp(const dig_t *a, const dig_t *b, int size) {
109109
}
110110

111111
int dv_cmp_const(const dig_t *a, const dig_t *b, int size) {
112-
int r = 0;
112+
dig_t r = 0;
113113

114114
for (int i = 0; i < size; i++) {
115115
r |= a[i] ^ b[i];

0 commit comments

Comments
 (0)