summaryrefslogtreecommitdiff
path: root/rules/hs-suffix-rules-srcdir.mk
diff options
context:
space:
mode:
authorPeter Trommler <ptrommler@acm.org>2020-06-11 08:31:22 +0200
committerPeter Trommler <ptrommler@acm.org>2020-06-13 07:17:53 -0400
commitce131b180738c6f6e9b4ca2224f41314b7db7e88 (patch)
tree8864eabd626d784f803b9626ed054234fa542e37 /rules/hs-suffix-rules-srcdir.mk
parent8bba1c26193e704d2d6bb2be9a2fac668b0ea54c (diff)
downloadhaskell-wip/T15933.tar.gz
FFI: Fix pass small ints in foreign call wrapperswip/T15933
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 'rules/hs-suffix-rules-srcdir.mk')
0 files changed, 0 insertions, 0 deletions