diff options
author | Peter Trommler <ptrommler@acm.org> | 2020-06-11 08:31:22 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-06-14 15:36:38 -0400 |
commit | 01f7052cc182c0ced85522dc775ebc490bf094ce (patch) | |
tree | 6168f59ed7c937aca0a713d7bae322ad62c6b30a /testsuite/tests/partial-sigs | |
parent | bd761185561747fe0b3adc22602f75d7b50cd248 (diff) | |
download | haskell-01f7052cc182c0ced85522dc775ebc490bf094ce.tar.gz |
FFI: Fix pass small ints in foreign call wrappers
The Haskell calling convention requires integer parameters smaller
than wordsize to be promoted to wordsize (where the upper bits are
don't care). To access such small integer parameter read a word from
the parameter array and then cast that word to the small integer
target type.
Fixes #15933
Diffstat (limited to 'testsuite/tests/partial-sigs')
0 files changed, 0 insertions, 0 deletions