diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2019-01-29 16:16:10 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-01-29 16:16:10 (GMT) |
commit | 742d768656512a469ce9571b1cbd777def7bc5ea (patch) | |
tree | 8a7883e4aa6cd678a1e2281724b2b1113aa2efbe /Modules | |
parent | 808180c206fbde390d9dbdf24a8989fc8a6446ec (diff) | |
download | cpython-742d768656512a469ce9571b1cbd777def7bc5ea.zip cpython-742d768656512a469ce9571b1cbd777def7bc5ea.tar.gz cpython-742d768656512a469ce9571b1cbd777def7bc5ea.tar.bz2 |
bpo-35847: RISC-V needs CTYPES_PASS_BY_REF_HACK (GH-11694)
This fixes the ctypes.test.test_structures.StructureTestCase test.
https://bugs.python.org/issue35847
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/callproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index a7965c1..bed5364 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -1058,7 +1058,7 @@ GetComError(HRESULT errcode, GUID *riid, IUnknown *pIunk) #endif #if (defined(__x86_64__) && (defined(__MINGW64__) || defined(__CYGWIN__))) || \ - defined(__aarch64__) + defined(__aarch64__) || defined(__riscv) #define CTYPES_PASS_BY_REF_HACK #define POW2(x) (((x & ~(x - 1)) == x) ? x : 0) #define IS_PASS_BY_REF(x) (x > 8 || !POW2(x)) |