Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/config Add long-long cast for cross-build printf po...



details:   https://anonhg.NetBSD.org/src/rev/c21f8e29719a
branches:  trunk
changeset: 555512:c21f8e29719a
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Nov 19 21:10:27 2003 +0000

description:
Add long-long cast for cross-build printf portability. We could be using
PRI* macros, but that would be too much complexity for a host tool.

diffstat:

 usr.sbin/config/gram.y |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 0586ad7f6fdd -r c21f8e29719a usr.sbin/config/gram.y
--- a/usr.sbin/config/gram.y    Wed Nov 19 20:47:00 2003 +0000
+++ b/usr.sbin/config/gram.y    Wed Nov 19 21:10:27 2003 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: gram.y,v 1.46 2003/11/19 18:06:13 christos Exp $       */
+/*     $NetBSD: gram.y,v 1.47 2003/11/19 21:10:27 christos Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -384,7 +384,7 @@
        EMPTY                           { $$ = $1; } |
        signed_number                   { char bf[40];
                                          (void)snprintf(bf, sizeof(bf),
-                                             FORMAT($1), $1.val);
+                                             FORMAT($1), (long long)$1.val);
                                          $$ = intern(bf); };
 
 stringvalue:



Home | Main Index | Thread Index | Old Index