Commit d1b7f399 authored by Martin v. Löwis's avatar Martin v. Löwis

Silence VS 2010 warning on loss of precision (_int64 -> _int32).

This is safe because the actual value is already range-checked.
parent b05c0738
...@@ -160,7 +160,7 @@ grow_buffer(PyObject **buf) ...@@ -160,7 +160,7 @@ grow_buffer(PyObject **buf)
"Value too large for " #TYPE " type"); \ "Value too large for " #TYPE " type"); \
return 0; \ return 0; \
} \ } \
*(TYPE *)ptr = val; \ *(TYPE *)ptr = (TYPE)val; \
return 1; \ return 1; \
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment