From 18131cedaac5e0b79820da1df01d51064babe73d Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:16:55 +0200 Subject: [PATCH] fix warning C4244: 'initializing': conversion from 'stwodigits' to 'digit', possible loss of data --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 59b10355ad9df8..557bb6e1dd956c 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -337,7 +337,7 @@ medium_from_stwodigits(stwodigits x) } _PyObject_Init((PyObject*)v, &PyLong_Type); } - digit abs_x = x < 0 ? -x : x; + digit abs_x = x < 0 ? (digit)(-x) : (digit)x; _PyLong_SetSignAndDigitCount(v, x<0?-1:1, 1); v->long_value.ob_digit[0] = abs_x; return PyStackRef_FromPyObjectStealMortal((PyObject *)v); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy