Skip to content

Commit f5df517

Browse files
committed
address review: restore comment
1 parent f6ab450 commit f5df517

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Include/internal/pycore_long.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,13 @@ _PyLong_SameSign(const PyLongObject *a, const PyLongObject *b)
285285
return (a->long_value.lv_tag & SIGN_MASK) == (b->long_value.lv_tag & SIGN_MASK);
286286
}
287287

288-
/* Initialize a freshly-allocated int. */
288+
/* Initialize a freshly-allocated int.
289+
*
290+
* Fast operations for single digit integers (including zero)
291+
* assume that there is always at least one digit present.
292+
* The digit has to be initialized explicitly to avoid
293+
* use-of-uninitialized-value.
294+
*/
289295
static inline void
290296
_PyLong_InitTag(PyLongObject *op)
291297
{

0 commit comments

Comments
 (0)