int flags;
long max_param=0;
long i;
+ int aux_signed_int;
while(*fmt) {
if(*fmt++ == '%') {
else if(vto[i].flags & FLAGS_UNSIGNED)
vto[i].data.num.as_unsigned =
(mp_uintmax_t)va_arg(arglist, unsigned int);
- else
+ else {
+ /*
vto[i].data.num.as_signed =
(mp_intmax_t)va_arg(arglist, int);
+ */
+ aux_signed_int = va_arg(arglist, int);
+ if(sizeof(mp_intmax_t) > sizeof(long))
+ vto[i].data.num.as_signed = (mp_intmax_t)aux_signed_int;
+ else
+ vto[i].data.num.as_signed = (long)aux_signed_int;
+ }
}
break;