compat: define ssize_t as int on 32bit Windows, silences C4142 warning
authorYuya Nishihara <yuya@tcha.org>
Fri, 15 Jul 2016 23:54:56 +0900
changeset 29549 7b22599dcb85
parent 29548 9da1adc18639
child 29550 1c22400db72d
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
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;