mjschultz / py-radix

Python radix tree implementation for IPv4 and IPv6 prefix matching.
Other
121 stars 37 forks source link

Change incompatible pointer type from RadixNodeObject to PyObject #58

Open robert-scheck opened 3 months ago

robert-scheck commented 3 months ago

Since GCC 14 implicitly casting all pointer types to all other pointer types is no longer allowed. This behavior is now restricted to the void * type and its qualified variations. According to the Python 3 documentation, all object types are extensions of the PyObject type. And it looks like the RadixNodeObject should meet the conditions to be a proper Python object.

See also:

Fixes: #57

Thanks to @musicinmybrain and @mbattista for their input and suggestions.

glaubitz commented 3 months ago

I can confirm that this patch fixes the problem for me.