Skip to content

Commit 87ded2e

Browse files
committed
+ forgot (char*) cast
1 parent 4e0460c commit 87ded2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_decimal/_decimal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3685,10 +3685,10 @@ dec_as_long(PyObject *dec, PyObject *context, int round)
36853685
status = 0;
36863686
/* mpd_sizeinbase can overestimate size by 1 digit, set it to zero. */
36873687
#if PYLONG_BITS_IN_DIGIT == 30
3688-
memset(digits + sizeof(uint32_t)*(n - 1), 0, sizeof(uint32_t));
3688+
memset((char *)digits + sizeof(uint32_t)*(n - 1), 0, sizeof(uint32_t));
36893689
n = mpd_qexport_u32((uint32_t **)&digits, n, PyLong_BASE, x, &status);
36903690
#elif PYLONG_BITS_IN_DIGIT == 15
3691-
memset(digits + sizeof(unit16_t)*(n - 1), 0, sizeof(uint16_t));
3691+
memset((char *)digits + sizeof(uint16_t)*(n - 1), 0, sizeof(uint16_t));
36923692
n = mpd_qexport_u16((uint16_t **)&digits, n, PyLong_BASE, x, &status);
36933693
#else
36943694
#error "PYLONG_BITS_IN_DIGIT should be 15 or 30"

0 commit comments

Comments
 (0)