# HG changeset patch # User Yuya Nishihara # Date 1468594496 -32400 # Node ID 7b22599dcb855b5988c144cd047f3b59564c6b97 # Parent 9da1adc18639caa328f4ad593896004f797caf05 compat: define ssize_t as int on 32bit Windows, silences C4142 warning It appears Python.h provides ssize_t, which is aliased to int. https://hg.python.org/cpython/file/v2.7.11/PC/pyconfig.h#l205 diff -r 9da1adc18639 -r 7b22599dcb85 mercurial/compat.h --- a/mercurial/compat.h Sun May 22 13:45:09 2016 +0900 +++ b/mercurial/compat.h Fri Jul 15 23:54:56 2016 +0900 @@ -8,7 +8,7 @@ #if defined(_WIN64) typedef __int64 ssize_t; #else -typedef long ssize_t; +typedef int ssize_t; #endif typedef signed char int8_t; typedef short int16_t;