+2001-12-04 Ian Abbott <abbotti@mev.co.uk>
+
+ * snprintf.c (dopr): Use `unsigned int' as the second argument to
+ va_arg when casting to `unsigned short' is intended.
+
2001-12-04 Herold Heiko <Heiko.Herold@previnet.it>
* gen_sslfunc.c: on windows provide ssl crypto random
case 'o':
flags |= DP_F_UNSIGNED;
if (cflags == DP_C_SHORT)
- value = (short int)va_arg (args, int);
+ value = (unsigned short int)va_arg (args, unsigned int);
else if (cflags == DP_C_LONG)
value = va_arg (args, unsigned long int);
else if (cflags == DP_C_LLONG)
case 'u':
flags |= DP_F_UNSIGNED;
if (cflags == DP_C_SHORT)
- value = (unsigned short int)va_arg (args, int);
+ value = (unsigned short int)va_arg (args, unsigned int);
else if (cflags == DP_C_LONG)
value = va_arg (args, unsigned long int);
else if (cflags == DP_C_LLONG)
case 'x':
flags |= DP_F_UNSIGNED;
if (cflags == DP_C_SHORT)
- value = (short int)va_arg (args, int);
+ value = (unsigned short int)va_arg (args, unsigned int);
else if (cflags == DP_C_LONG)
value = va_arg (args, unsigned long int);
else if (cflags == DP_C_LLONG)