changeset: 100171:cfb77ccdc23a user: Yury Selivanov date: Sat Feb 06 12:21:33 2016 -0500 files: Objects/longobject.c description: Issue #26288: Fix comment diff -r 0c0a531fd269 -r cfb77ccdc23a Objects/longobject.c --- a/Objects/longobject.c Fri Feb 05 19:37:47 2016 -0800 +++ b/Objects/longobject.c Sat Feb 06 12:21:33 2016 -0500 @@ -2770,9 +2770,9 @@ return -1.0; } if (Py_ABS(Py_SIZE(v)) <= 1) { - /* Fast path; single digit will always fit decimal. - This improves performance of FP/long operations by at - least 20%. This is even visible on macro-benchmarks. + /* Fast path; single digit long (31 bits) will cast safely + to double. This improves performance of FP/long operations + by 20%. */ return (double)MEDIUM_VALUE((PyLongObject *)v); }