Skip to content

Commit 668cda0

Browse files
committed
remove unnecessary duplication of multiplication
1 parent 334c32e commit 668cda0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tommath_private.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ do { \
4747
int fd_ = (digits); \
4848
void* fm_ = (mem); \
4949
if (fm_ != NULL) { \
50-
MP_ZERO_BUFFER(fm_, sizeof(mp_digit) * (size_t)fd_); \
51-
MP_FREE(fm_, sizeof(mp_digit) * (size_t)fd_); \
50+
size_t fs_ = sizeof (mp_digit) * (size_t)fd_; \
51+
MP_ZERO_BUFFER(fm_, fs_); \
52+
MP_FREE(fm_, fs_); \
5253
} \
5354
} while (0)
5455
#endif

0 commit comments

Comments
 (0)