Skip to content

Commit

Permalink
vsprintf: Fix build warning for %t
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Cross <[email protected]>
  • Loading branch information
Sean Cross committed Dec 30, 2014
1 parent 54bf239 commit 2cad716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ static int vsnprintf_internal(char *buf, size_t size, const char *fmt,
} else if (qualifier == 'Z' || qualifier == 'z') {
num = va_arg(args, size_t);
} else if (qualifier == 't') {
num = va_arg(args, void *);
num = (unsigned long) va_arg(args, void *);
} else if (qualifier == 'h') {
num = (unsigned short) va_arg(args, int);
if (flags & SIGN)
Expand Down

0 comments on commit 2cad716

Please sign in to comment.