[ back to toc ]

'u16' is promoted to 'int' when passed through '...'

Date: 2002/02/01 17:27

Q:
A:
Could you send me the code fragment?

of course:

while (itemcode = va_arg(marker,u16)) {
switch (IT_TYPE(itemcode)) {

you can get the "full code" here:

http://prdownloads.sourceforge.net/jukeboxmgr/QJukeboxMgr_1_1_4.tgz

Regards,
Peter

good luck!

david

A:
I am puzzled.

Maybe this is because C does not pass anything on the stack smaller than
int (by definition of standard). Even chars are converted to int. (and
float is passed as double converting automatically)

You can not actually fetch a u16 on a machine where int is 32 bit (and
this is the case on all machines these days).

Regards,
Peter

[ back to toc ]