Skip to content

Cast to ptrdiff_t instead of subtracting by null

TestingPlant requested to merge TestingPlant/glib:use-ptrdiff into main

Subtraction by a null pointer is done to get a ptrdiff_t. However, this is undefined behavior, so it's been replaced with a cast to ptrdiff_t.

Merge request reports