[Mono-dev] [PATCH] Marshaling booleans as U1

Robert Jordan robertj at gmx.net
Wed Oct 17 11:51:51 EDT 2007

Bill Holmes wrote:
> And for my own curiosity of how things work my question is; without
> this patch a boolean marshaled as U1 will go to the default case and
> marshal a 32 bit integer.  Will this mess up the arguments passed to
> the C function call because the size being pushed is bigger than the C
> function expects?

It depends on the arch, but at least on x86 and x86_64 it's irrelevant,
because the args are widened to the register size anyways. I guess
any other arch is handling args < regsize this way.


More information about the Mono-devel-list mailing list