diff options
author | James E. King, III <jking@apache.org> | 2017-03-10 06:18:33 -0500 |
---|---|---|
committer | James E. King, III <jking@apache.org> | 2017-03-10 06:18:33 -0500 |
commit | 07f59971bd11df619709444275298061ee69f707 (patch) | |
tree | 197adaaede4f594115899dc409a30d2d842195d3 /lib/py | |
parent | 9b1544dc21f2d952b91c44e4636e1b9da937002c (diff) | |
download | thrift-07f59971bd11df619709444275298061ee69f707.tar.gz |
THRIFT-4081: appveyor retooling - added mingw64 build as a second job to the CI build process
This closes #1205
Diffstat (limited to 'lib/py')
-rw-r--r-- | lib/py/src/ext/module.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/py/src/ext/module.cpp b/lib/py/src/ext/module.cpp index 34ec7f624..7158b8fdf 100644 --- a/lib/py/src/ext/module.cpp +++ b/lib/py/src/ext/module.cpp @@ -87,12 +87,7 @@ static PyObject* decode_impl(PyObject* args) { } T protocol; -#ifdef _MSC_VER - // workaround strange VC++ 2015 bug where #else path does not compile - int32_t default_limit = INT32_MAX; -#else - int32_t default_limit = std::numeric_limits<int32_t>::max(); -#endif + int32_t default_limit = (std::numeric_limits<int32_t>::max)(); protocol.setStringLengthLimit( as_long_then_delete(PyObject_GetAttr(oprot, INTERN_STRING(string_length_limit)), default_limit)); |