summaryrefslogtreecommitdiff
path: root/testsuite/tests/dynlibs/T5373A.hs
diff options
context:
space:
mode:
authorPeter Trommler <ptrommler@acm.org>2020-06-11 08:31:22 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-14 15:36:38 -0400
commit01f7052cc182c0ced85522dc775ebc490bf094ce (patch)
tree6168f59ed7c937aca0a713d7bae322ad62c6b30a /testsuite/tests/dynlibs/T5373A.hs
parentbd761185561747fe0b3adc22602f75d7b50cd248 (diff)
downloadhaskell-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/dynlibs/T5373A.hs')
0 files changed, 0 insertions, 0 deletions