pkgsrc/emulators/twin/patches/patch-ao
joerg fcfec7dec3 Add DragonFly support. Workaround a bug in DragonFly's time.h when
compiling with _POSIX_SOURCE set (size_t doesn't get defined).
Fix errno. Fix an incorrect va_arg: short gets promoted to int, so use
that.
2006-01-15 19:20:59 +00:00

16 lines
514 B
Text

$NetBSD: patch-ao,v 1.1 2006/01/15 19:20:59 joerg Exp $
--- windows/vsprintf32.c.orig 2006-01-15 18:59:25.000000000 +0000
+++ windows/vsprintf32.c
@@ -264,9 +264,9 @@ wsprintfW(char * buf, LPCWSTR format, ..
num = va_arg(args, unsigned long);
else if (qualifier == 'h')
if (flags & SIGN)
- num = va_arg(args, short);
+ num = va_arg(args, int);
else
- num = va_arg(args, unsigned short);
+ num = va_arg(args, unsigned int);
else if (flags & SIGN)
num = va_arg(args, int);
else