Skip to content
Snippets Groups Projects
Commit 01f7052c authored by Peter Trommler's avatar Peter Trommler :drum: Committed by Marge Bot
Browse files

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
parent bd761185
No related branches found
No related tags found
Loading
Pipeline #20920 passed with warnings
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment