This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: trivial typo in Include/pymath.h
Type: compile error Stage:
Components: Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, sgala
Priority: normal Keywords:

Created on 2008-08-19 19:11 by sgala, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg71465 - (view) Author: Santiago Gala (sgala) Date: 2008-08-19 19:11
file Include/pymath.h has the typo s/doube/double/, hidden by the fact
that any sane OS defines copysign:


diff --git a/Include/pymath.h b/Include/pymath.h
index a3735c2..7cea9ae 100644
--- a/Include/pymath.h
+++ b/Include/pymath.h
@@ -19,7 +19,7 @@ functions and constants
  *Note: PC/pyconfig.h defines copysign as _copysign
  */
 #ifndef HAVE_COPYSIGN
-extern double copysign(doube, double);
+extern double copysign(double, double);
 #endif
 
 #ifndef HAVE_ACOSH


It is both in trunk and py3k
msg71470 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-08-19 19:29
Thanks! Fixed in r65869.
msg71523 - (view) Author: Santiago Gala (sgala) Date: 2008-08-20 09:13
Notice the typo is still in a number of branches/tags (I know, tags
should be static, but nothing impedes committing into a subversion tag
once it is created, so I quote for reference):

sgala@marlow ~/newcode/python.git (py3k)$ for i in $(git branch -a| sed
-e "s/\*//"); do if git rev-parse --verify $i:Include/pymath.h
>&/dev/null ;then PAGER= git grep doube $i:Include/pymath.h 2>/dev/null
; fi; done
benjaminp-testing:Include/pymath.h:extern double copysign(doube, double);
okkoto-sizeof:Include/pymath.h:extern double copysign(doube, double);
py3k-ctypes-pep3118:Include/pymath.h:extern double copysign(doube, double);
py3k-urllib:Include/pymath.h:extern double copysign(doube, double);
tags/r26a3:Include/pymath.h:extern double copysign(doube, double);
tags/r26b1:Include/pymath.h:extern double copysign(doube, double);
tags/r26b2:Include/pymath.h:extern double copysign(doube, double);
tags/r30a5:Include/pymath.h:extern double copysign(doube, double);
tags/r30a5-real:Include/pymath.h:extern double copysign(doube, double);
tags/r30a5-real@62867:Include/pymath.h:extern double copysign(doube,
double);
tags/r30b1:Include/pymath.h:extern double copysign(doube, double);
tags/r30b2:Include/pymath.h:extern double copysign(doube, double);
tlee-ast-optimize:Include/pymath.h:extern double copysign(doube, double);
tnelson-trunk-bsddb-47-upgrade:Include/pymath.h:extern double
copysign(doube, double);
trunk-math:Include/pymath.h:extern double copysign(doube, double);


I just paste the list because I can't say which branches are currently
active or suitable to be retaken in the  future. The origin of the typo
is in trunk-math.
msg71597 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-08-21 01:18
Don't worry. It's taken care of in all the active lines of development.
History
Date User Action Args
2022-04-11 14:56:37adminsetgithub: 47853
2008-08-21 01:18:18benjamin.petersonsetmessages: + msg71597
2008-08-20 09:13:25sgalasetmessages: + msg71523
2008-08-19 19:29:53benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg71470
nosy: + benjamin.peterson
2008-08-19 19:11:04sgalacreate