Module Name: src
Committed By: jakllsch
Date: Tue Dec 24 22:26:21 UTC 2013
Modified Files:
src/sys/lib/libsa: subr_prf.c
Log Message:
intmax_t might be long long, handle accordingly. from christos
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/lib/libsa/subr_prf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/lib/libsa/subr_prf.c
diff -u src/sys/lib/libsa/subr_prf.c:1.22 src/sys/lib/libsa/subr_prf.c:1.23
--- src/sys/lib/libsa/subr_prf.c:1.22 Tue Dec 24 21:41:49 2013
+++ src/sys/lib/libsa/subr_prf.c Tue Dec 24 22:26:21 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_prf.c,v 1.22 2013/12/24 21:41:49 jakllsch Exp $ */
+/* $NetBSD: subr_prf.c,v 1.23 2013/12/24 22:26:21 jakllsch Exp $ */
/*-
* Copyright (c) 1993
@@ -214,6 +214,11 @@ reswitch:
lflag |= LONG;
goto reswitch;
case 'j':
+#ifdef LIBSA_PRINTF_LONGLONG_SUPPORT
+ if (sizeof(intmax_t) == sizeof(long long))
+ lflag |= LLONG;
+ else
+#endif
if (sizeof(intmax_t) == sizeof(long))
lflag |= LONG;
goto reswitch;