bpo-40941: Fix stackdepth compiler warnings (GH-22377)

Explicitly cast a difference of two pointers to int:
PyFrameObject.f_stackdepth is an int.
1 file changed