@@ -121,15 +121,15 @@ There are two problems on non-IEEE platforms:
121
121
* What this does is undefined if *x* is a NaN or infinity.
122
122
* ``-0.0`` and ``+0.0`` produce the same bytes string.
123
123
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)
125
125
126
126
Pack a C double as the IEEE 754 binary16 half-precision format.
127
127
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)
129
129
130
130
Pack a C double as the IEEE 754 binary32 single precision format.
131
131
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)
133
133
134
134
Pack a C double as the IEEE 754 binary64 double precision format.
135
135
@@ -151,14 +151,14 @@ Return value: The unpacked double. On error, this is ``-1.0`` and
151
151
Note that on a non-IEEE platform this will refuse to unpack a bytes string that
152
152
represents a NaN or infinity.
153
153
154
- .. c:function:: double PyFloat_Unpack2(const unsigned char *p, int le)
154
+ .. c:function:: double PyFloat_Unpack2(const char *p, int le)
155
155
156
156
Unpack the IEEE 754 binary16 half-precision format as a C double.
157
157
158
- .. c :function :: double PyFloat_Unpack4 (const unsigned char *p, int le)
158
+ .. c :function :: double PyFloat_Unpack4 (const char *p, int le)
159
159
160
160
Unpack the IEEE 754 binary32 single precision format as a C double.
161
161
162
- .. c :function :: double PyFloat_Unpack8 (const unsigned char *p, int le)
162
+ .. c :function :: double PyFloat_Unpack8 (const char *p, int le)
163
163
164
164
Unpack the IEEE 754 binary64 double precision format as a C double.
0 commit comments