mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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;
|
||||
}
|
||||
else {
|
||||
float y = x;
|
||||
float y = (float)x;
|
||||
const char *s = (char*)&y;
|
||||
int i, incr = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue