Skip to content
Prev Previous commit
Next Next commit
Reduce diff
  • Loading branch information
nineteendo committed May 10, 2025
commit d18c455e12f7bcc83210d20b63accab90583e354
1 change: 1 addition & 0 deletions Modules/_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,8 @@
}
else if (PyLong_Check(obj)) {
if (PyLong_CheckExact(obj)) {
// Fast-path for exact integers
return _PyLong_FormatWriter(writer, obj, 10, 0);

Check failure on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

implicit declaration of function ‘_PyLong_FormatWriter’; did you mean ‘_PyLong_FromDigits’? [-Werror=implicit-function-declaration]

Check failure on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

implicit declaration of function ‘_PyLong_FormatWriter’; did you mean ‘_PyLong_FromDigits’? [-Werror=implicit-function-declaration]

Check failure on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

implicit declaration of function ‘_PyLong_FormatWriter’; did you mean ‘_PyLong_FromDigits’? [-Werror=implicit-function-declaration]

Check failure on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

implicit declaration of function ‘_PyLong_FormatWriter’; did you mean ‘_PyLong_FromDigits’? [-Werror=implicit-function-declaration]

Check failure on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

implicit declaration of function ‘_PyLong_FormatWriter’; did you mean ‘_PyLong_FromDigits’? [-Werror=implicit-function-declaration]

Check failure on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

implicit declaration of function ‘_PyLong_FormatWriter’; did you mean ‘_PyLong_FromDigits’? [-Werror=implicit-function-declaration]

Check failure on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

implicit declaration of function ‘_PyLong_FormatWriter’; did you mean ‘_PyLong_FromDigits’? [-Werror=implicit-function-declaration]

Check failure on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

implicit declaration of function ‘_PyLong_FormatWriter’; did you mean ‘_PyLong_FromDigits’? [-Werror=implicit-function-declaration]

Check warning on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Windows / Build and test (x64)

'_PyLong_FormatWriter' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]

Check warning on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / Build and test (x64)

'_PyLong_FormatWriter' undefined; assuming extern returning int [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]

Check warning on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Windows / Build and test (arm64)

'_PyLong_FormatWriter' undefined; assuming extern returning int [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]

Check warning on line 1487 in Modules/_json.c

View workflow job for this annotation

GitHub Actions / Windows (free-threading) / Build and test (arm64)

'_PyLong_FormatWriter' undefined; assuming extern returning int [C:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
}
PyObject *encoded = PyLong_Type.tp_repr(obj);
if (encoded == NULL)
Expand Down
Loading