changeset 29549:7b22599dcb85

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
author Yuya Nishihara <yuya@tcha.org>
date Fri, 15 Jul 2016 23:54:56 +0900
parents 9da1adc18639
children 1c22400db72d
files mercurial/compat.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;