summaryrefslogtreecommitdiff
path: root/Objects/floatobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-14 02:13:11 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-14 02:13:11 +0200
commitda328a42858356139f9e6de860b802408ed76f5d (patch)
treeadbb203db90912487281f97f5b0461557aba9bc5 /Objects/floatobject.c
parent055fcd534b46fc2dcb4ebb644d436fd9629d157c (diff)
downloadcpython-da328a42858356139f9e6de860b802408ed76f5d.tar.gz
Issue #13088: Add shared Py_hexdigits constant to format a number into base 16
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 1c8a6a32a3..4e0fa7da0a 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -1058,7 +1058,7 @@ static char
char_from_hex(int x)
{
assert(0 <= x && x < 16);
- return "0123456789abcdef"[x];
+ return Py_hexdigits[x];
}
static int