Vladimir Matveev <desco...@gmail.com> added the comment:

I think the problem is that FFI layer assumes that MSVC compiler will try to 
pass any structure less than 8 bytes in registers whereis it is not always 
true: 
To be returned by value in RAX, user-defined types must have a length of 1, 2, 
4, 8, 16, 32, or 64 bits (from 
https://msdn.microsoft.com/en-us/library/7572ztz4.aspx).
I have a fix, now adding tests.

----------
nosy: +v2m

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34603>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to