Skip to content

Commit 708a8bf

Browse files
authored
Merge pull request #178 from libtom/add-missing-const
add missing const to cast
2 parents 12f0abb + fce2966 commit 708a8bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bn_mp_import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int mp_import(mp_int *rop, size_t count, int order, size_t size,
4343

4444
for (i = 0; i < count; ++i) {
4545
for (j = 0; j < (size - nail_bytes); ++j) {
46-
unsigned char byte = *((unsigned char *)op +
46+
unsigned char byte = *((const unsigned char *)op +
4747
(((order == 1) ? i : ((count - 1u) - i)) * size) +
4848
((endian == 1) ? (j + nail_bytes) : (((size - 1u) - j) - nail_bytes)));
4949

0 commit comments

Comments
 (0)