diff options
author | Richard Levitte <levitte@openssl.org> | 2000-02-27 23:17:18 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-02-27 23:17:18 +0000 |
commit | 1b7aee1d4e77433babc5487e05597ae01ce2d82c (patch) | |
tree | 4b6d2d41dd8ea8a9993e8a0d7f961059fd93300e /crypto/bio | |
parent | 4ba48ec4d05ef71bb6933bb4983e9a98d92763fc (diff) |
Short is always promoted to int when passed as a function argument.
This is especially true when it's part of a '...'.
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/b_print.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index caf2235cc2..b8d94369b3 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -292,7 +292,7 @@ dopr( case 'i': switch (cflags) { case DP_C_SHORT: - value = va_arg(args, short int); + value = (short int)va_arg(args, int); break; case DP_C_LONG: value = va_arg(args, long int); @@ -315,8 +315,7 @@ dopr( flags |= DP_F_UNSIGNED; switch (cflags) { case DP_C_SHORT: - value = va_arg(args, - unsigned short int); + value = (unsigned short int)va_arg(args, int); break; case DP_C_LONG: value = (LLONG) va_arg(args, |