Skip to content

Commit 592a313

Browse files
[3.13] gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664) (#136667)
gh-136663: fix signatures of PyFloat_Pack/Unpack in docs (GH-136664) (cherry picked from commit e4654e0) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent 2a6617d commit 592a313

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/c-api/float.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ There are two problems on non-IEEE platforms:
121121
* What this does is undefined if *x* is a NaN or infinity.
122122
* ``-0.0`` and ``+0.0`` produce the same bytes string.
123123
124-
.. c:function:: int PyFloat_Pack2(double x, unsigned char *p, int le)
124+
.. c:function:: int PyFloat_Pack2(double x, char *p, int le)
125125
126126
Pack a C double as the IEEE 754 binary16 half-precision format.
127127
128-
.. c:function:: int PyFloat_Pack4(double x, unsigned char *p, int le)
128+
.. c:function:: int PyFloat_Pack4(double x, char *p, int le)
129129
130130
Pack a C double as the IEEE 754 binary32 single precision format.
131131
132-
.. c:function:: int PyFloat_Pack8(double x, unsigned char *p, int le)
132+
.. c:function:: int PyFloat_Pack8(double x, char *p, int le)
133133
134134
Pack a C double as the IEEE 754 binary64 double precision format.
135135
@@ -151,14 +151,14 @@ Return value: The unpacked double. On error, this is ``-1.0`` and
151151
Note that on a non-IEEE platform this will refuse to unpack a bytes string that
152152
represents a NaN or infinity.
153153
154-
.. c:function:: double PyFloat_Unpack2(const unsigned char *p, int le)
154+
.. c:function:: double PyFloat_Unpack2(const char *p, int le)
155155
156156
Unpack the IEEE 754 binary16 half-precision format as a C double.
157157
158-
.. c:function:: double PyFloat_Unpack4(const unsigned char *p, int le)
158+
.. c:function:: double PyFloat_Unpack4(const char *p, int le)
159159
160160
Unpack the IEEE 754 binary32 single precision format as a C double.
161161
162-
.. c:function:: double PyFloat_Unpack8(const unsigned char *p, int le)
162+
.. c:function:: double PyFloat_Unpack8(const char *p, int le)
163163
164164
Unpack the IEEE 754 binary64 double precision format as a C double.

0 commit comments

Comments
 (0)