From d1b7f3993a57bd95c9a307768d01782237e973e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 15 May 2012 14:06:21 +0200 Subject: Silence VS 2010 warning on loss of precision (_int64 -> _int32). This is safe because the actual value is already range-checked. --- Modules/_lzmamodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_lzmamodule.c b/Modules/_lzmamodule.c index 029d4dd..6720d4c 100644 --- a/Modules/_lzmamodule.c +++ b/Modules/_lzmamodule.c @@ -160,7 +160,7 @@ grow_buffer(PyObject **buf) "Value too large for " #TYPE " type"); \ return 0; \ } \ - *(TYPE *)ptr = val; \ + *(TYPE *)ptr = (TYPE)val; \ return 1; \ } -- cgit v0.12