Skip to content

Commit 003708b

Browse files
authored
Trivial typo fix in _tkinter.c (GH-19622)
Change spelling of a #define in _tkinter.c from HAVE_LIBTOMMAMTH to HAVE_LIBTOMMATH, since this is used to keep track of tclTomMath.h, not tclTomMamth.h. No other file seems to refer to this variable.
1 parent 4a12d12 commit 003708b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Modules/_tkinter.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Copyright (C) 1994 Steen Lumholt.
5454

5555
#if TK_HEX_VERSION >= 0x08050208 && TK_HEX_VERSION < 0x08060000 || \
5656
TK_HEX_VERSION >= 0x08060200
57-
#define HAVE_LIBTOMMAMTH
57+
#define HAVE_LIBTOMMATH
5858
#include <tclTomMath.h>
5959
#endif
6060

@@ -965,7 +965,7 @@ static PyType_Spec PyTclObject_Type_spec = {
965965
#define CHECK_STRING_LENGTH(s)
966966
#endif
967967

968-
#ifdef HAVE_LIBTOMMAMTH
968+
#ifdef HAVE_LIBTOMMATH
969969
static Tcl_Obj*
970970
asBignumObj(PyObject *value)
971971
{
@@ -1045,7 +1045,7 @@ AsObj(PyObject *value)
10451045
#endif
10461046
/* If there is an overflow in the wideInt conversion,
10471047
fall through to bignum handling. */
1048-
#ifdef HAVE_LIBTOMMAMTH
1048+
#ifdef HAVE_LIBTOMMATH
10491049
return asBignumObj(value);
10501050
#endif
10511051
/* If there is no wideInt or bignum support,
@@ -1167,7 +1167,7 @@ fromWideIntObj(TkappObject *tkapp, Tcl_Obj *value)
11671167
return NULL;
11681168
}
11691169

1170-
#ifdef HAVE_LIBTOMMAMTH
1170+
#ifdef HAVE_LIBTOMMATH
11711171
static PyObject*
11721172
fromBignumObj(TkappObject *tkapp, Tcl_Obj *value)
11731173
{
@@ -1247,7 +1247,7 @@ FromObj(TkappObject *tkapp, Tcl_Obj *value)
12471247
fall through to bignum handling. */
12481248
}
12491249

1250-
#ifdef HAVE_LIBTOMMAMTH
1250+
#ifdef HAVE_LIBTOMMATH
12511251
if (value->typePtr == tkapp->IntType ||
12521252
value->typePtr == tkapp->WideIntType ||
12531253
value->typePtr == tkapp->BignumType) {
@@ -1300,7 +1300,7 @@ FromObj(TkappObject *tkapp, Tcl_Obj *value)
13001300
}
13011301
#endif
13021302

1303-
#ifdef HAVE_LIBTOMMAMTH
1303+
#ifdef HAVE_LIBTOMMATH
13041304
if (tkapp->BignumType == NULL &&
13051305
strcmp(value->typePtr->name, "bignum") == 0) {
13061306
/* bignum type is not registered in Tcl */
@@ -2001,7 +2001,7 @@ _tkinter_tkapp_getint(TkappObject *self, PyObject *arg)
20012001
Prefer bignum because Tcl_GetWideIntFromObj returns ambiguous result for
20022002
value in ranges -2**64..-2**63-1 and 2**63..2**64-1 (on 32-bit platform).
20032003
*/
2004-
#ifdef HAVE_LIBTOMMAMTH
2004+
#ifdef HAVE_LIBTOMMATH
20052005
result = fromBignumObj(self, value);
20062006
#else
20072007
result = fromWideIntObj(self, value);

0 commit comments

Comments
 (0)