Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/bc/dist Add missign % (yyerror argument is a pr...



details:   https://anonhg.NetBSD.org/src/rev/16a964ae2f65
branches:  trunk
changeset: 822852:16a964ae2f65
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Apr 10 15:13:04 2017 +0000

description:
Add missign % (yyerror argument is a printf format)

diffstat:

 external/bsd/bc/dist/bc.y |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ac15a9a26423 -r 16a964ae2f65 external/bsd/bc/dist/bc.y
--- a/external/bsd/bc/dist/bc.y Mon Apr 10 15:04:32 2017 +0000
+++ b/external/bsd/bc/dist/bc.y Mon Apr 10 15:13:04 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bc.y,v 1.1 2017/04/10 02:28:23 phil Exp $ */
+/*     $NetBSD: bc.y,v 1.2 2017/04/10 15:13:04 christos Exp $ */
 
 /*
  * Copyright (C) 1991-1994, 1997, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
@@ -618,7 +618,7 @@
                        | expression '%' expression
                            {
                              if (($1 & EX_VOID) || ($3 & EX_VOID))
-                               yyerror ("void expression with %");
+                               yyerror ("void expression with %%");
                              generate ("%");
                              $$ = ($1 | $3) & ~EX_PAREN;
                            }



Home | Main Index | Thread Index | Old Index