Issue #26288: Fix comment

This commit is contained in:
Yury Selivanov 2016-02-06 12:21:33 -05:00
parent 029f7f7af2
commit a0fcaca4e1
1 changed files with 3 additions and 3 deletions

View File

@ -2770,9 +2770,9 @@ PyLong_AsDouble(PyObject *v)
return -1.0; return -1.0;
} }
if (Py_ABS(Py_SIZE(v)) <= 1) { if (Py_ABS(Py_SIZE(v)) <= 1) {
/* Fast path; single digit will always fit decimal. /* Fast path; single digit long (31 bits) will cast safely
This improves performance of FP/long operations by at to double. This improves performance of FP/long operations
least 20%. This is even visible on macro-benchmarks. by 20%.
*/ */
return (double)MEDIUM_VALUE((PyLongObject *)v); return (double)MEDIUM_VALUE((PyLongObject *)v);
} }