| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
'stwodigits' to 'digit', possible loss of data
|
Just checking: what does the rest of longobject do? Sorry I cant check myself as Im on mobile |
Sorry, something went wrong.
|
There are many (digit) casts if something is assigned to a digit, but is a bigger data type. Here that cast is missing, hence, MSVC fires the warning. Which is of no concern, since a few lines above if(!is_medium_int(x)) {
return PyStackRef_NULL;
}ensures that the contents of stwodigits x is small enough to be cast into a digit without loss. But since here a signed conversion takes place, too, I'd appreciate a second pair of eyes @markshannon ? |
Sorry, something went wrong.
…igit' (pythonGH-135714) fix warning C4244: 'initializing': conversion from 'stwodigits' to 'digit', possible loss of data
…igit' (pythonGH-135714) fix warning C4244: 'initializing': conversion from 'stwodigits' to 'digit', possible loss of data
…igit' (pythonGH-135714) fix warning C4244: 'initializing': conversion from 'stwodigits' to 'digit', possible loss of data
| Back | FazBrowse Home | New Git URL |
Fixes MSVC warning C4244: 'initializing': conversion from 'stwodigits' to 'digit', possible loss of data.