You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(where kind is a char and ord returns a long). PR welcome to fix - I think this could hide a real bug in principle. (At least if Numpy starts using unicode kinds - which would be odd but I guess they could)
Ah, thanks. So this is from generated code on our side. I replaced the char type with Py_UCS4 in e584c46. It comes from a Unicode string, there's no reason why we should cut this down to a char.
Describe the bug
There's an odd warning present when I check for fused type in
if
clause.Warning C4244 '=': conversion from 'long' to 'char', possible loss of data
I found mention of the same bug in Internet dated 2015:
https://www.mail-archive.com/cython-devel@python.org/msg04553.html
I minimized the example code
Code to reproduce the behaviour:
Copilled with:
Expected behaviour
There should be no warning
OS
Windows 10
Python version
3.9
Cython version
3.0.5
Additional context
No response
The text was updated successfully, but these errors were encountered: