Skip to content

Commit 2a90e57

Browse files
committed
+ cast
1 parent 7776661 commit 2a90e57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ PyFloat_Pack2(double x, char *data, int le)
19291929
* canonical NaN of the new type". The canonical NaN here
19301930
* is a positive qNaN with zero payload. */
19311931
if (v & (1ULL << 63)) {
1932-
u16 |= (1U << 15); /* set sign */
1932+
u16 |= (uint16_t)(1U << 15); /* set sign */
19331933
}
19341934
/* add payload */
19351935
u16 -= (u16 & 0x1ff);

0 commit comments

Comments
 (0)