Skip to content

Fix #242: Mask out unwanted bits for integer results

Raymond Toy requested to merge issue-242-c-call-char-result-wrong into master

When a foreign call is specified to return an integer that is less than 32-bits long, we need to mask out unwanted bits because the compiler may return the result in al or ax, without modifying the other parts of the eax register.

Merge request reports