mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Apparently some compiler gives a warning on
float y = x; when x is a double. Go figure.
This commit is contained in:
parent
3296e696db
commit
3095ad0650
1 changed files with 1 additions and 1 deletions
|
|
@ -1427,7 +1427,7 @@ _PyFloat_Pack4(double x, unsigned char *p, int le)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
float y = x;
|
float y = (float)x;
|
||||||
const char *s = (char*)&y;
|
const char *s = (char*)&y;
|
||||||
int i, incr = 1;
|
int i, incr = 1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue