projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba48ec
)
Short is always promoted to int when passed as a function argument.
author
Richard Levitte
<levitte@openssl.org>
Sun, 27 Feb 2000 23:17:18 +0000
(23:17 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Sun, 27 Feb 2000 23:17:18 +0000
(23:17 +0000)
This is especially true when it's part of a '...'.
crypto/bio/b_print.c
patch
|
blob
|
history
diff --git
a/crypto/bio/b_print.c
b/crypto/bio/b_print.c
index caf2235cc273b21d80edfb89f2132c7dd2fabd00..b8d94369b3f593ae54ae5a27009eac0362eacaf4 100644
(file)
--- 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,