diff options
author | Armin Rigo <arigo@tunes.org> | 2019-11-07 12:24:21 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2019-11-07 12:24:21 +0100 |
commit | 95724a60eb1ed1f8b508471405801697d0b28758 (patch) | |
tree | f8c7a1a9c87da61942b26a8377d9c42c3d3f623d /cffi/_cffi_include.h | |
parent | 33d747324c70eb197be7da7130df5a3bee85a566 (diff) | |
download | cffi-95724a60eb1ed1f8b508471405801697d0b28758.tar.gz |
Tweak the '-Wno-*' arguments passed to gcc during tests
Diffstat (limited to 'cffi/_cffi_include.h')
-rw-r--r-- | cffi/_cffi_include.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cffi/_cffi_include.h b/cffi/_cffi_include.h index 37ea74f..2eeb49b 100644 --- a/cffi/_cffi_include.h +++ b/cffi/_cffi_include.h @@ -261,12 +261,12 @@ _CFFI_UNUSED_FN static int _cffi_to_c_char32_t(PyObject *o) return (int)_cffi_to_c_wchar3216_t(o); } -_CFFI_UNUSED_FN static PyObject *_cffi_from_c_char32_t(int x) +_CFFI_UNUSED_FN static PyObject *_cffi_from_c_char32_t(unsigned int x) { if (sizeof(_cffi_wchar_t) == 4) return _cffi_from_c_wchar_t((_cffi_wchar_t)x); else - return _cffi_from_c_wchar3216_t(x); + return _cffi_from_c_wchar3216_t((int)x); } |