Skip to content

Commit 9fa2b37

Browse files
committed
Init NULL
1 parent 2ba7ce7 commit 9fa2b37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/lib-rt/int_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ CPyTagged CPyTagged_BitwiseLongOp_(CPyTagged a, CPyTagged b, char op) {
295295
digit *adigits = GetIntDigits(a, &asize, abuf);
296296
digit *bdigits = GetIntDigits(b, &bsize, bbuf);
297297

298-
void *digits;
299298
if (unlikely(asize < 0 || bsize < 0)) {
300299
// Negative operand. This is slower, but bitwise ops on them are pretty rare.
301300
return GenericBitwiseOp(a, b, op);
@@ -310,6 +309,7 @@ CPyTagged CPyTagged_BitwiseLongOp_(CPyTagged a, CPyTagged b, char op) {
310309
asize = bsize;
311310
bsize = tmp_size;
312311
}
312+
void *digits = NULL;
313313
PyLongWriter *writer = PyLongWriter_Create(0, op == '&' ? asize : bsize, &digits);
314314
if (unlikely(writer == NULL)) {
315315
CPyError_OutOfMemory();

0 commit comments

Comments
 (0)