Issue #21118: PyLong_AS_LONG() result type is long

Even if PyLong_AS_LONG() cannot fail, I prefer to use the right type.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 921d7aa..af70ede 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -8568,7 +8568,7 @@
         return 1;
     }
     else if (PyLong_Check(item)) {
-        Py_UCS4 replace = (Py_UCS4)PyLong_AS_LONG(item);
+        long replace = PyLong_AS_LONG(item);
         /* PyLong_AS_LONG() cannot fail, charmaptranslate_lookup() already
            used it */
         if (127 < replace) {